Package | Description |
---|---|
org.apache.commons.jexl3 |
Provides a framework for evaluating JEXL expressions.
|
org.apache.commons.jexl3.internal |
Provides utilities for introspection services.
|
org.apache.commons.jexl3.parser |
Contains the Parser for JEXL script.
|
Modifier and Type | Method and Description |
---|---|
static JexlInfo |
JexlException.getInfo(JexlNode node,
JexlInfo info)
Gets the most specific information attached to a node.
|
static String |
JexlException.methodError(JexlNode node,
String method)
Generates a message for a unsolvable method error.
|
static String |
JexlException.operatorError(JexlNode node,
String symbol)
Generates a message for an operator error.
|
static String |
JexlException.propertyError(JexlNode node,
String var)
Generates a message for an unsolvable property error.
|
static String |
JexlException.variableError(JexlNode node,
String variable,
boolean undef)
Generates a message for a variable error.
|
Constructor and Description |
---|
JexlException.Break(JexlNode node)
Creates a new instance of Break.
|
JexlException.Cancel(JexlNode node)
Creates a new instance of Cancel.
|
JexlException.Continue(JexlNode node)
Creates a new instance of Continue.
|
JexlException.Method(JexlNode node,
String name)
Creates a new Method exception instance.
|
JexlException.Operator(JexlNode node,
String symbol,
Throwable cause)
Creates a new Operator exception instance.
|
JexlException.Property(JexlNode node,
String var)
Creates a new Property exception instance.
|
JexlException.Property(JexlNode node,
String var,
Throwable cause)
Creates a new Property exception instance.
|
JexlException.Return(JexlNode node,
String msg,
Object value)
Creates a new instance of Return.
|
JexlException.Variable(JexlNode node,
String var,
boolean undef)
Creates a new Variable exception instance.
|
JexlException(JexlNode node,
String msg)
Creates a new JexlException.
|
JexlException(JexlNode node,
String msg,
Throwable cause)
Creates a new JexlException.
|
Modifier and Type | Field and Description |
---|---|
protected JexlNode |
Debugger.cause
The cause of the issue to debug.
|
Modifier and Type | Method and Description |
---|---|
protected JexlNode |
Interpreter.findNullOperand(RuntimeException xrt,
JexlNode node,
Object left,
Object right)
Finds the node causing a NPE for diadic operators.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
Debugger.accept(JexlNode node,
Object data)
Checks if a child node is the cause to debug & adds its representation to the rebuilt expression.
|
protected Object |
Debugger.acceptStatement(JexlNode child,
Object data)
Adds a statement node to the rebuilt expression.
|
protected Object |
TemplateDebugger.acceptStatement(JexlNode child,
Object data) |
protected Object |
Debugger.additiveNode(JexlNode node,
String op,
Object data)
Rebuilds an additive expression.
|
protected Object |
Interpreter.call(JexlNode node,
Object target,
Object functor,
ASTArguments argNode)
Calls a method (or function).
|
protected Object |
Debugger.check(JexlNode node,
String image,
Object data)
Checks if a terminal node is the the cause to debug & adds its representation to the rebuilt expression.
|
void |
Engine.VarCollector.collect(JexlNode node)
Starts/stops a variable collect.
|
protected boolean |
Operators.contains(JexlNode node,
String op,
Object left,
Object right)
The 'match'/'in' operator implementation.
|
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.
|
boolean |
Debugger.debug(JexlNode node,
boolean r)
Seeks the location of an error cause (a node) in an expression.
|
protected Object |
Operators.empty(JexlNode node,
Object object)
Check for emptyness of various types: Collection, Array, Map, String, and anything that has a boolean isEmpty()
method.
|
protected boolean |
Operators.endsWith(JexlNode node,
String operator,
Object left,
Object right)
The 'endsWith' operator implementation.
|
protected Object |
Interpreter.executeAssign(JexlNode node,
JexlOperator assignop,
Object data)
Executes an assignment with an optional side-effect operator.
|
protected JexlNode |
Interpreter.findNullOperand(RuntimeException xrt,
JexlNode node,
Object left,
Object right)
Finds the node causing a NPE for diadic operators.
|
protected Object |
Interpreter.getAttribute(Object object,
Object attribute,
JexlNode node)
Gets an attribute of an object.
|
protected void |
Engine.getVariables(ASTJexlScript script,
JexlNode node,
Engine.VarCollector collector)
Fills up the list of variables accessed by a node.
|
protected Object |
Debugger.infixChildren(JexlNode node,
String infix,
boolean paren,
Object data)
Checks if the children of a node using infix notation is the cause to debug, adds their representation to the
rebuilt expression.
|
Object |
Interpreter.interpret(JexlNode node)
Interpret the given script/expression.
|
protected boolean |
Interpreter.isTernaryProtected(JexlNode node)
Check if a null evaluated expression is protected by a ternary expression.
|
protected void |
Interpreter.operatorError(JexlNode node,
JexlOperator operator,
Throwable cause)
Triggered when an operator fails.
|
protected Object |
Debugger.prefixChild(JexlNode node,
String prefix,
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 Object |
Interpreter.resolveNamespace(String prefix,
JexlNode node)
Resolves a namespace, eventually allocating an instance using context as constructor argument.
|
protected Object |
TemplateInterpreter.resolveNamespace(String prefix,
JexlNode node) |
protected void |
Interpreter.setAttribute(Object object,
Object attribute,
Object value,
JexlNode node)
Sets an attribute of an object.
|
protected Object |
Operators.size(JexlNode node,
Object object)
Calculate the
size of various types:
Collection, Array, Map, String, and anything that has a int size() method. |
protected boolean |
Operators.startsWith(JexlNode node,
String operator,
Object left,
Object right)
The 'startsWith' operator implementation.
|
protected Object |
Operators.tryAssignOverload(JexlNode node,
JexlOperator operator,
Object... args)
Evaluates an assign operator.
|
protected Object |
Operators.tryOverload(JexlNode node,
JexlOperator operator,
Object... args)
Attempts to call an operator.
|
protected Object |
Interpreter.unsolvableMethod(JexlNode node,
String method)
Triggered when a method can not be resolved.
|
protected Object |
Interpreter.unsolvableProperty(JexlNode node,
String var,
Throwable cause)
Triggered when a property can not be resolved.
|
protected Object |
Interpreter.unsolvableVariable(JexlNode node,
String var,
boolean undef)
Triggered when a variable can not be resolved.
|
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 |
---|---|
protected void |
JexlParser.throwParsingException(JexlNode node)
Throws a parsing exception.
|
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.