|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
org.apache.velocity.runtime.directive.Scope
This handles context scoping and metadata for directives.
Nested Class Summary | |
static class |
Scope.Info
Class to encapsulate and provide access to info about the current scope for debugging. |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary | |
protected Object |
owner
|
Constructor Summary | |
Scope(Object owner,
Object previous)
|
Method Summary | |
Set |
entrySet()
|
Object |
get(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. |
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() . |
Object |
put(Object key,
Object value)
|
protected void |
stop()
Allows #stop to easily trigger the proper StopCommand for this scope. |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final Object owner
Constructor Detail |
public Scope(Object owner, Object previous)
Method Detail |
public Set entrySet()
public Object get(Object key)
public Object put(Object key, Object value)
protected void stop()
protected int getDepth()
public Scope getTopmost()
getParent()
.
public Scope getParent()
public Object getReplaced()
getParent()
.
public Scope.Info getInfo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |