public class Scope
extends java.util.AbstractMap
| Modifier and Type | Class and Description |
|---|---|
static class |
Scope.Info
Class to encapsulate and provide access to info about
the current scope for debugging.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
owner |
| Constructor and Description |
|---|
Scope(java.lang.Object owner,
java.lang.Object previous) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set |
entrySet() |
java.lang.Object |
get(java.lang.Object key) |
protected int |
getDepth()
Returns the number of control arguments of this type
that are stacked up.
|
Scope.Info |
getInfo()
Returns info about the current scope for debugging purposes.
|
Scope |
getParent()
Returns the parent control reference overridden by the placement
of this instance in the context.
|
java.lang.Object |
getReplaced()
Returns the user's context reference overridden by the placement
of this instance in the context.
|
Scope |
getTopmost()
Returns the topmost parent control reference, retrieved
by simple recursion on
getParent(). |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
protected void |
stop()
Allows #stop to easily trigger the proper StopCommand for this scope.
|
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuespublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in class java.util.AbstractMappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class java.util.AbstractMappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.AbstractMapprotected void stop()
protected int getDepth()
public Scope getTopmost()
getParent().public Scope getParent()
public java.lang.Object getReplaced()
getParent().public Scope.Info getInfo()