public class Scope extends AbstractMap<Object,Object>
Modifier and Type | Class and Description |
---|---|
static class |
Scope.Info
Class to encapsulate and provide access to info about
the current scope for debugging.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<Object,Object>> |
entrySet() |
Object |
get(Object key)
getter
|
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)
setter
|
String |
set(Object key,
Object value)
Convenience method to call put(key,val) in a template
without worrying about what is returned/rendered by the call.
|
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, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected final Object owner
public String set(Object key, Object value)
key
- value
- protected void stop()
protected int getDepth()
public Scope getTopmost()
getParent()
.public Scope getParent()
public Object getReplaced()
getParent()
.public Scope.Info getInfo()
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.