| |
|
| java.lang.Object ognl.OgnlContext
OgnlContext | public class OgnlContext extends Object implements Map(Code) | | This class defines the execution context for an OGNL expression
author: Luke Blanshard (blanshlu@netscape.net) author: Drew Davidson (drew@ognl.org) |
CLASS_RESOLVER_CONTEXT_KEY | final public static String CLASS_RESOLVER_CONTEXT_KEY(Code) | | |
CONTEXT_CONTEXT_KEY | final public static String CONTEXT_CONTEXT_KEY(Code) | | |
KEEP_LAST_EVALUATION_CONTEXT_KEY | final public static String KEEP_LAST_EVALUATION_CONTEXT_KEY(Code) | | |
LAST_EVALUATION_CONTEXT_KEY | final public static String LAST_EVALUATION_CONTEXT_KEY(Code) | | |
MEMBER_ACCESS_CONTEXT_KEY | final public static String MEMBER_ACCESS_CONTEXT_KEY(Code) | | |
ROOT_CONTEXT_KEY | final public static String ROOT_CONTEXT_KEY(Code) | | |
THIS_CONTEXT_KEY | final public static String THIS_CONTEXT_KEY(Code) | | |
TRACE_EVALUATIONS_CONTEXT_KEY | final public static String TRACE_EVALUATIONS_CONTEXT_KEY(Code) | | |
TYPE_CONVERTER_CONTEXT_KEY | final public static String TYPE_CONVERTER_CONTEXT_KEY(Code) | | |
OgnlContext | public OgnlContext()(Code) | | Constructs a new OgnlContext with the default class resolver, type converter and
member access.
|
OgnlContext | public OgnlContext(ClassResolver classResolver, TypeConverter typeConverter, MemberAccess memberAccess)(Code) | | Constructs a new OgnlContext with the given class resolver, type converter and
member access. If any of these parameters is null the default will be used.
|
OgnlContext | public OgnlContext(Map values)(Code) | | |
clear | public void clear()(Code) | | |
containsValue | public boolean containsValue(Object value)(Code) | | |
getCurrentEvaluation | public Evaluation getCurrentEvaluation()(Code) | | Gets the current Evaluation from the top of the stack.
This is the Evaluation that is in process of evaluating.
|
getEvaluation | public Evaluation getEvaluation(int relativeIndex)(Code) | | Returns the Evaluation at the relative index given. This should be
zero or a negative number as a relative reference back up the evaluation
stack. Therefore getEvaluation(0) returns the current Evaluation.
|
getKeepLastEvaluation | public boolean getKeepLastEvaluation()(Code) | | Returns true if the last evaluation that was done on this
context is retained and available through getLastEvaluation() .
The default is true.
|
getRootEvaluation | public Evaluation getRootEvaluation()(Code) | | Gets the root of the evaluation stack.
This Evaluation contains the node representing
the root expression and the source is the root
source object.
|
getTraceEvaluations | public boolean getTraceEvaluations()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
popEvaluation | public Evaluation popEvaluation()(Code) | | Pops the current Evaluation off of the top of the stack.
This is done after a node has completed its evaluation.
|
pushEvaluation | public void pushEvaluation(Evaluation value)(Code) | | Pushes a new Evaluation onto the stack. This is done
before a node evaluates. When evaluation is complete
it should be popped from the stack via popEvaluation() .
|
recycleLastEvaluation | public void recycleLastEvaluation()(Code) | | This method can be called when the last evaluation has been used
and can be returned for reuse in the free pool maintained by the
runtime. This is not a necessary step, but is useful for keeping
memory usage down. This will recycle the last evaluation and then
set the last evaluation to null.
|
setCurrentNode | public void setCurrentNode(Node value)(Code) | | |
setCurrentObject | public void setCurrentObject(Object value)(Code) | | |
setKeepLastEvaluation | public void setKeepLastEvaluation(boolean value)(Code) | | Sets whether the last evaluation that was done on this
context is retained and available through getLastEvaluation() .
The default is true.
|
setTraceEvaluations | public void setTraceEvaluations(boolean value)(Code) | | |
setValues | public void setValues(Map value)(Code) | | |
|
|
|