Package | Description |
---|---|
org.apache.commons.jexl |
Jexl-1.x compatible implementation.
|
org.apache.commons.jexl2 |
Provides a framework for evaluating JEXL expressions.
|
org.apache.commons.jexl2.parser |
Contains the Parser for JEXL script.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
JexlOne.JexlOneInterpreter.interpret(JexlNode node)
Interpret the given script/expression.
|
Modifier and Type | Field and Description |
---|---|
private JexlNode |
Debugger.cause
The cause of the issue to debug.
|
protected JexlNode |
JexlException.mark
The point of origin for this exception.
|
protected JexlNode |
UnifiedJEXL.JexlBasedExpression.node
The JEXL node for this expression.
|
Modifier and Type | Method and Description |
---|---|
protected JexlNode |
Interpreter.findNullOperand(java.lang.RuntimeException xrt,
JexlNode node,
java.lang.Object left,
java.lang.Object right)
Finds the node causing a NPE for diadic operators.
|
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
Debugger.accept(JexlNode node,
java.lang.Object data)
Checks if a child node is the cause to debug & adds its representation
to the rebuilt expression.
|
private java.lang.Object |
Debugger.acceptStatement(JexlNode child,
java.lang.Object data)
Adds a statement node to the rebuilt expression.
|
private java.lang.Object |
Interpreter.call(JexlNode node,
java.lang.Object bean,
ASTIdentifier methodNode,
int argb)
Calls a method (or function).
|
private java.lang.Object |
Debugger.check(JexlNode node,
java.lang.String image,
java.lang.Object data)
Checks if a terminal node is the the cause to debug & adds its
representation to the rebuilt expression.
|
java.lang.String |
Debugger.data(JexlNode node)
Rebuilds an expression from a Jexl node.
|
boolean |
Debugger.debug(JexlNode node)
Seeks the location of an error cause (a node) in an expression.
|
protected JexlNode |
Interpreter.findNullOperand(java.lang.RuntimeException xrt,
JexlNode node,
java.lang.Object left,
java.lang.Object right)
Finds the node causing a NPE for diadic operators.
|
protected java.lang.Object |
Interpreter.getAttribute(java.lang.Object object,
java.lang.Object attribute,
JexlNode node)
Gets an attribute of an object.
|
protected void |
JexlEngine.getVariables(JexlNode node,
java.util.Set<java.util.List<java.lang.String>> refs,
java.util.List<java.lang.String> ref)
Fills up the list of variables accessed by a node.
|
private java.lang.Object |
Debugger.infixChildren(JexlNode node,
java.lang.String infix,
boolean paren,
java.lang.Object data)
Checks if the children of a node using infix notation is the cause to debug,
adds their representation to the rebuilt expression.
|
java.lang.Object |
Interpreter.interpret(JexlNode node)
Interpret the given script/expression.
|
private boolean |
Interpreter.isTernaryProtected(JexlNode node)
Check if a null evaluated expression is protected by a ternary expression.
|
private java.lang.Object |
Debugger.prefixChild(JexlNode node,
java.lang.String prefix,
java.lang.Object data)
Checks if the child of a node using prefix notation is the cause to debug,
adds their representation to the rebuilt expression.
|
protected java.lang.Object |
Interpreter.resolveNamespace(java.lang.String prefix,
JexlNode node)
Resolves a namespace, eventually allocating an instance using context as constructor argument.
|
protected void |
Interpreter.setAttribute(java.lang.Object object,
java.lang.Object attribute,
java.lang.Object value,
JexlNode node)
Sets an attribute of an object.
|
private int |
Interpreter.sizeOf(JexlNode node,
java.lang.Object val)
Calculate the
size of various types: Collection, Array,
Map, String, and anything that has a int size() method. |
Constructor and Description |
---|
Cancel(JexlNode node)
Creates a new instance of Cancel.
|
DeferredExpression(java.lang.CharSequence expr,
JexlNode node,
UnifiedJEXL.Expression source)
Creates a deferred expression.
|
ImmediateExpression(java.lang.CharSequence expr,
JexlNode node,
UnifiedJEXL.Expression source)
Creates an immediate expression.
|
JexlBasedExpression(java.lang.CharSequence theExpr,
JexlNode theNode,
UnifiedJEXL.Expression theSource)
Creates a JEXL interpretable expression.
|
JexlException(JexlNode node,
java.lang.String msg)
Creates a new JexlException.
|
JexlException(JexlNode node,
java.lang.String msg,
java.lang.Throwable cause)
Creates a new JexlException.
|
Method(JexlNode node,
java.lang.String name)
Creates a new Method exception instance.
|
NestedExpression(java.lang.CharSequence expr,
JexlNode node,
UnifiedJEXL.Expression source)
Creates a nested expression.
|
Property(JexlNode node,
java.lang.String var)
Creates a new Property exception instance.
|
Return(JexlNode node,
java.lang.String msg,
java.lang.Object value)
Creates a new instance of Return.
|
Variable(JexlNode node,
java.lang.String var)
Creates a new Variable exception instance.
|
Modifier and Type | Class and Description |
---|---|
class |
ASTAdditiveNode |
class |
ASTAdditiveOperator |
class |
ASTAmbiguous |
class |
ASTAndNode |
class |
ASTArrayAccess |
class |
ASTArrayLiteral |
class |
ASTAssignment |
class |
ASTBitwiseAndNode |
class |
ASTBitwiseComplNode |
class |
ASTBitwiseOrNode |
class |
ASTBitwiseXorNode |
class |
ASTBlock |
class |
ASTConstructorNode |
class |
ASTDivNode |
class |
ASTEmptyFunction |
class |
ASTEQNode |
class |
ASTERNode |
class |
ASTFalseNode |
class |
ASTFloatLiteral
Deprecated.
Only for use in maintaining binary compatibility - should not actually be used - will be removed in 3.0
|
class |
ASTForeachStatement |
class |
ASTFunctionNode |
class |
ASTGENode |
class |
ASTGTNode |
class |
ASTIdentifier
Identifiers, variables and registers.
|
class |
ASTIfStatement |
class |
ASTIntegerLiteral
Deprecated.
Only for use in maintaining binary compatibility - should not actually be used - will be removed in 3.0
|
class |
ASTJexlScript
Enhanced script to allow parameters declaration.
|
class |
ASTLENode |
class |
ASTLTNode |
class |
ASTMapEntry |
class |
ASTMapLiteral |
class |
ASTMethodNode |
class |
ASTModNode |
class |
ASTMulNode |
class |
ASTNENode |
class |
ASTNotNode |
class |
ASTNRNode |
class |
ASTNullLiteral |
class |
ASTNumberLiteral |
class |
ASTOrNode |
class |
ASTReference |
class |
ASTReferenceExpression |
class |
ASTReturnStatement |
class |
ASTSizeFunction |
class |
ASTSizeMethod |
class |
ASTStringLiteral |
class |
ASTTernaryNode |
class |
ASTTrueNode |
class |
ASTUnaryMinusNode |
class |
ASTVar
Declares a local variable.
|
class |
ASTWhileStatement |
Modifier and Type | Field and Description |
---|---|
protected JexlNode[] |
SimpleNode.children
The array of children nodes.
|
protected JexlNode |
SimpleNode.parent
The parent node.
|
Modifier and Type | Method and Description |
---|---|
JexlNode |
SimpleNode.jjtGetChild(int i)
Gets a child of this node.
|
JexlNode |
SimpleNode.jjtGetParent()
Gets this node's parent.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
JexlParser.jjtreeCloseNodeScope(JexlNode n)
Ambiguous statement detector.
|
(package private) void |
JexlParser.jjtreeOpenNodeScope(JexlNode n) |