| Modifier and Type | Field and Description |
|---|---|
| protected final JexlArithmetic | arithmetic
The arithmetic handler. |
| protected final boolean | cache
Cache executors. |
| private volatile boolean | cancelled
Cancellation support. |
| protected final JexlContext | context
The context to store/retrieve variables. |
| protected static final Object[] | EMPTY_PARAMS
Empty parameters for method matching. |
| protected final Map | functions
The map of registered functions. |
| protected Map | functors
The map of registered functions. |
| protected final Log | logger
The logger. |
| private String[] | parameters
Parameter names if any. |
| protected Object[] | registers
Registers or arguments. |
| protected boolean | silent
Silent intepreter flag. |
| protected boolean | strict
Strict interpreter flag. |
| protected final Uberspect | uberspect
The uberspect. |
| Access | Constructor and Description |
|---|---|
| public | Interpreter(JexlEngine
the engine creating this interpreter jexl, JexlContext the context to evaluate expression aContext)
Deprecated
Creates an interpreter.
|
| public | Interpreter(JexlEngine
the engine creating this interpreter jexl, JexlContext the context to evaluate expression aContext, boolean whether this interpreter runs in strict mode strictFlag, boolean whether this interpreter runs in silent mode silentFlag)Creates an interpreter. |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private Object | Returns: the result of the method invocationthe method node node, Object the bean this method should be invoked upon bean, ASTIdentifier the node carrying the method name methodNode, int the first argument index, child of the method node argb)Calls a method (or function). |
| protected JexlNode | Returns: the left, right or parent nodethe RuntimeException xrt, JexlNode the parent node node, Object the left argument left, Object the right argument right)Finds the node causing a NPE for diadic operators. |
| public Object | Returns: the attribute valueto retrieve value from object, Object the attribute of the object, e.g. an index (1, 0, 2) or
key for a map attribute)Gets an attribute of an object. |
| protected Object | Returns: the attribute valueto retrieve value from object, Object the attribute of the object, e.g. an index (1, 0, 2) or
key for a map attribute, JexlNode the node that evaluated as the object node)Gets an attribute of an object. |
| protected JexlContext | |
| protected Uberspect | |
| public Object | |
| protected Object | Returns: throws JexlException if strict, null otherwisethe JexlException wrapping the original error xjexl)Triggered when method, function or constructor invocation fails. |
| protected boolean | Returns: true if cancelled, false otherwiseChecks whether this interpreter execution was cancelled due to thread interruption. |
| public boolean | Returns: true if silent, false otherwiseChecks whether this interpreter throws JexlException when encountering errors. |
| public boolean | Returns: true if strict, false otherwiseChecks whether this interpreter considers unknown variables, methods and constructors as errors. |
| private boolean | Returns: true if nullable variable, false otherwisethe expression node node)Check if a null evaluated expression is protected by a ternary expression. |
| protected Object | Returns: the namespace instancethe prefix name (may be null for global namespace) prefix, JexlNode the AST node node)Resolves a namespace, eventually allocating an instance using context as constructor argument. |
| public void | setAttribute(Object
to set the value to object, Object the attribute of the object, e.g. an index (1, 0, 2) or
key for a map attribute, Object the value to assign to the object's attribute value)Sets an attribute of an object. |
| protected void | setAttribute(Object
to set the value to object, Object the attribute of the object, e.g. an index (1, 0, 2) or
key for a map attribute, Object the value to assign to the object's attribute value, JexlNode the node that evaluated as the object node)Sets an attribute of an object. |
| protected void | |
| protected void | setRegisters(Object...
the array of registers theRegisters)
Deprecated
Sets this interpreter registers for bean access/assign expressions.
|
| public void | setSilent(boolean
true for silent, false for verbose flag)
Deprecated
Do not use; will be removed in a later version
Sets whether this interpreter throws JexlException when encountering errors.
|
| public void | setStrict(boolean
true for strict, false for lenient flag)
Deprecated
Do not use; will be removed in a later version
Sets whether this interpreter considers unknown variables, methods and constructors as errors.
|
| private int | |
| protected Object | Returns: throws JexlException if strict, null otherwisethe JexlException ("undefined variable " + variable) xjexl)Triggered when variable can not be resolved. |
| public Object | visit(ASTAdditiveNode node, Object data)
Implements org. |
| public Object | visit(ASTAdditiveOperator node, Object data)
Implements org. |
| public Object | |
| public Object | visit(ASTArrayAccess node, Object data)
Implements org. |
| public Object | visit(ASTArrayLiteral node, Object data)
Implements org. |
| public Object | visit(ASTAssignment node, Object data)
Implements org. |
| public Object | visit(ASTBitwiseAndNode node, Object data)
Implements org. |
| public Object | visit(ASTBitwiseComplNode node, Object data)
Implements org. |
| public Object | visit(ASTBitwiseOrNode node, Object data)
Implements org. |
| public Object | visit(ASTBitwiseXorNode node, Object data)
Implements org. |
| public Object | |
| public Object | |
| public Object | visit(ASTEmptyFunction node, Object data)
Implements org. |
| public Object | |
| public Object | visit(ASTFalseNode node, Object data)
Implements org. |
| public Object | visit(ASTForeachStatement node, Object data)
Implements org. |
| public Object | |
| public Object | |
| public Object | |
| public Object | visit(ASTIdentifier node, Object data)
Implements org. |
| public Object | |
| public Object | |
| public Object | |
| public Object | visit(ASTIfStatement node, Object data)
Implements org. |
| public Object | visit(ASTNumberLiteral node, Object data)
Implements org. |
| public Object | visit(ASTJexlScript node, Object data)
Implements org. |
| public Object | |
| public Object | |
| public Object | |
| public Object | visit(ASTMapLiteral node, Object data)
Implements org. |
| public Object | visit(ASTMethodNode node, Object data)
Implements org. |
| public Object | visit(ASTFunctionNode node, Object data)
Implements org. |
| public Object | visit(ASTConstructorNode node, Object data)
Implements org. |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | visit(ASTNullLiteral node, Object data)
Implements org. |
| public Object | |
| public Object | visit(ASTReference node, Object data)
Implements org. |
| public Object | visit(ASTReferenceExpression node, Object data)
Implements org. |
| public Object | visit(ASTReturnStatement node, Object data)
Implements org. |
| public Object | visit(ASTSizeFunction node, Object data)
Implements org. |
| public Object | visit(ASTSizeMethod node, Object data)
Implements org. |
| public Object | visit(ASTStringLiteral node, Object data)
Implements org. |
| public Object | visit(ASTTernaryNode node, Object data)
Implements org. |
| public Object | |
| public Object | visit(ASTUnaryMinusNode node, Object data)
Implements org. |
| public Object | visit(ASTWhileStatement node, Object data)
Implements org. |
| public Object | Returns: does not returna node node, Object the data data)Implements org. |
| public Object | Returns: does not returna node node, Object the data data)Implements org. |