Uses of Class
org.apache.commons.jexl3.parser.JexlNode
Packages that use JexlNode
Package
Description
Provides a framework for evaluating JEXL expressions.
Provides utilities for introspection services.
Contains the Parser for JEXL script.
-
Uses of JexlNode in org.apache.commons.jexl3
Fields in org.apache.commons.jexl3 declared as JexlNodeModifier and TypeFieldDescriptionprivate final JexlNode
JexlException.mark
The point of origin for this exception.Methods in org.apache.commons.jexl3 with parameters of type JexlNodeModifier and TypeMethodDescriptionstatic String
JexlException.annotationError
(JexlNode node, String annotation) Generates a message for an annotation error.(package private) static JexlInfo
JexlException.detailedInfo
(JexlNode node, JexlInfo info) Gets the most specific information attached to a node.(package private) static StringBuilder
Creates a string builder pre-filled with common error information (if possible).static JexlInfo
Deprecated.3.2static String
JexlException.methodError
(JexlNode node, String method) Deprecated.3.2static String
JexlException.methodError
(JexlNode node, String method, Object[] args) 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) Deprecated.3.2static String
JexlException.propertyError
(JexlNode node, String pty, boolean undef) Generates a message for an unsolvable property error.static String
JexlException.variableError
(JexlNode node, String variable, boolean undef) Deprecated.3.2static String
JexlException.variableError
(JexlNode node, String variable, JexlException.VariableIssue issue) Generates a message for a variable error.Constructors in org.apache.commons.jexl3 with parameters of type JexlNodeModifierConstructorDescriptionAnnotation
(JexlNode node, String name, Throwable cause) Creates a new Annotation exception instance.Creates a new instance of Break.Creates a new instance of Cancel.Creates a new instance of Continue.JexlException
(JexlNode node, String msg) Creates a new JexlException.JexlException
(JexlNode node, String msg, Throwable cause) Creates a new JexlException.protected
JexlException
(JexlNode node, String msg, Throwable cause, boolean trace) Creates a new JexlException.Deprecated.as of 3.2, use call with method argumentsCreates a new Method exception instance.Creates a new Operator exception instance.Deprecated.3.2Creates a new Property exception instance.Deprecated.3.2Creates a new instance of Return.Creates a new Variable exception instance.Variable
(JexlNode node, String var, JexlException.VariableIssue vi) Creates a new Variable exception instance. -
Uses of JexlNode in org.apache.commons.jexl3.internal
Fields in org.apache.commons.jexl3.internal declared as JexlNodeModifier and TypeFieldDescriptionprotected JexlNode
Debugger.cause
The cause of the issue to debug.(package private) final JexlNode
InterpreterBase.CallDispatcher.node
The syntactic node.protected final JexlNode
TemplateEngine.JexlBasedExpression.node
The JEXL node for this unified expression.private JexlNode
Engine.VarCollector.root
The node that started the collect.Methods in org.apache.commons.jexl3.internal that return JexlNodeModifier and TypeMethodDescriptionprotected JexlNode
InterpreterBase.findNullOperand
(RuntimeException xrt, JexlNode node, Object left, Object right) Deprecated.protected JexlNode
InterpreterBase.findNullOperand
(JexlNode node, Object left, Object right) Finds the node causing a NPE for diadic operators.Methods in org.apache.commons.jexl3.internal with parameters of type JexlNodeModifier and TypeMethodDescriptionprotected Object
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
InterpreterBase.annotationError
(JexlNode node, String annotation, Throwable cause) Triggered when an annotation processing fails.protected Object
Interpreter.call
(JexlNode node, Object target, Object funcNode, ASTArguments argNode) Calls a method (or function).protected void
InterpreterBase.cancelCheck
(JexlNode node) Throws a JexlException.Cancel if script execution was cancelled.protected Object
Checks if a terminal node is the cause to debug & adds its representation to the rebuilt expression.void
Starts/stops a variable collect.private static void
TemplateScript.collectPrintScope
(JexlNode node, Map<Integer, JexlNode.Info> minfo) Collects the scope surrounding a call to jexl:print(i).protected boolean
The 'match'/'in' operator implementation.Rebuilds an expression from a JEXL node.boolean
Seeks the location of an error cause (a node) in an expression.boolean
Seeks the location of an error cause (a node) in an expression.protected Object
Check for emptyness of various types: Collection, Array, Map, String, and anything that has a boolean isEmpty() method.protected boolean
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
InterpreterBase.findNullOperand
(RuntimeException xrt, JexlNode node, Object left, Object right) Deprecated.protected JexlNode
InterpreterBase.findNullOperand
(JexlNode node, Object left, Object right) Finds the node causing a NPE for diadic operators.protected Object
InterpreterBase.getAttribute
(Object object, Object attribute, JexlNode node) Gets an attribute of an object.protected JexlFeatures
Debugger.getFeatures
(JexlNode node) Tries (hard) to find the features used to parse a node.TemplateDebugger.getPrintStatement
(JexlNode child) In a template, any statement that is not 'jexl:print(n)' must be prefixed by "$$".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.Interpret the given script/expression.protected JexlException
InterpreterBase.invocationException
(JexlNode node, String methodName, Throwable xany) Triggered when method, function or constructor invocation fails with an exception.private static boolean
Debugger.isStatement
(JexlNode child) Whether a node is a statement (vs an expression).protected boolean
InterpreterBase.isStrictOperand
(JexlNode node) (package private) static boolean
Engine32.isTernaryProtected
(Interpreter ii, JexlNode node) Static delegation of isTernaryProtected.protected boolean
InterpreterBase.isTernaryProtected
(JexlNode node) Check if a null evaluated expression is protected by a ternary expression.protected Object
InterpreterBase.operatorError
(JexlNode node, JexlOperator operator, Throwable cause) Triggered when an operator fails.protected Object
Debugger.postfixChild
(JexlNode node, String prefix, Object data) Postfix operators.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
InterpreterBase.redefinedVariable
(JexlNode node, String var) Triggered when a variable is lexically known as being redefined.protected Object
InterpreterBase.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
Debugger.setArrowSymbol
(JexlNode node) Sets the arrow style (fat or thin) depending on features.protected void
InterpreterBase.setAttribute
(Object object, Object attribute, Object value, JexlNode node) Sets an attribute of an object.protected void
InterpreterBase.setContextVariable
(JexlNode node, String name, Object value) Sets a variable in the global context.protected Object
Calculate thesize
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 String
InterpreterBase.stringifyProperty
(JexlNode node) Pretty-prints a failing property (de)reference.protected static String
InterpreterBase.stringifyPropertyValue
(JexlNode node) Pretty-prints a failing property value (de)reference.private boolean
Interpreter.testPredicate
(JexlNode node, Object condition) protected Object
Operators.tryAssignOverload
(JexlNode node, JexlOperator operator, Consumer<Object> assignFun, Object... args) Evaluates an assign operator.protected Object
Operators.tryOverload
(JexlNode node, JexlOperator operator, Object... args) Attempts to call an operator.protected Object
InterpreterBase.undefinedVariable
(JexlNode node, String var) Triggered when a variable is lexically known as undefined.protected Object
InterpreterBase.unsolvableMethod
(JexlNode node, String method) Triggered when a method can not be resolved.protected Object
InterpreterBase.unsolvableMethod
(JexlNode node, String method, Object[] args) Triggered when a method can not be resolved.protected Object
InterpreterBase.unsolvableProperty
(JexlNode node, String property, boolean undef, Throwable cause) Triggered when a property can not be resolved.protected Object
InterpreterBase.unsolvableVariable
(JexlNode node, String var, boolean undef) Triggered when a variable can not be resolved.protected Object
InterpreterBase.variableError
(JexlNode node, String var, JexlException.VariableIssue issue) Triggered when a variable generates an issue.protected Object
Interpreter.visitLexicalNode
(JexlNode node, Object data) Runs a node.protected Object
Visits a node.Constructors in org.apache.commons.jexl3.internal with parameters of type JexlNodeModifierConstructorDescription(package private)
CallDispatcher
(JexlNode anode, boolean acacheable) Dispatcher ctor.(package private)
DeferredExpression
(CharSequence expr, JexlNode node, TemplateEngine.TemplateExpression source) Creates a deferred unified expression.(package private)
ImmediateExpression
(CharSequence expr, JexlNode node, TemplateEngine.TemplateExpression source) Creates an immediate unified expression.protected
JexlBasedExpression
(CharSequence theExpr, JexlNode theNode, TemplateEngine.TemplateExpression theSource) Creates a JEXL interpretable unified expression.(package private)
NestedExpression
(CharSequence expr, JexlNode node, TemplateEngine.TemplateExpression source) Creates a nested unified expression. -
Uses of JexlNode in org.apache.commons.jexl3.parser
Subclasses of JexlNode in org.apache.commons.jexl3.parserModifier and TypeClassDescriptionclass
final class
class
class
class
Annotation.class
class
final class
An array literal.class
class
class
class
class
class
Declares a block.class
class
class
class
class
class
class
class
class
class
class
class
class
class
Declares a for each loop.class
class
class
class
class
class
Identifiers, variables, ie symbols.class
Identifiers, variables and registers.class
x.`expr`.class
x?.identifier .class
x?.`expr` .class
class
final class
Lambda (function).class
Enhanced script to allow parameters declaration.final class
class
class
class
final class
class
class
class
class
Namespace : identifier.class
class
class
class
class
class
class
final class
class
class
Identifiers, variables, ie symbols.class
class
final class
final class
class
class
class
class
final class
class
class
class
class
class
class
class
class
class
class
class
class
final class
class
class
class
class
class
class
class
Declares a local variable.class
class
Base class for AST nodes behaving as lexical units.Fields in org.apache.commons.jexl3.parser declared as JexlNodeModifier and TypeFieldDescriptionprivate JexlNode[]
SimpleNode.children
The array of children nodes.(package private) JexlNode
JexlNode.Info.node
private JexlNode
SimpleNode.parent
The parent node.Fields in org.apache.commons.jexl3.parser with type parameters of type JexlNodeModifier and TypeFieldDescriptionJexlParser.ASSIGN_NODES
The set of assignment operators as classes.Methods in org.apache.commons.jexl3.parser that return JexlNodeModifier and TypeMethodDescriptionJexlNode.Info.getNode()
SimpleNode.jjtGetChild
(int i) Gets a child of this node.SimpleNode.jjtGetParent()
Gets this node's parent.Methods in org.apache.commons.jexl3.parser with parameters of type JexlNodeModifier and TypeMethodDescriptionvoid
FeatureController.controlNode
(JexlNode node) Perform the control on a node.private Object
FeatureController.controlSideEffect
(JexlNode node, Object data) private boolean
FeatureController.isArrayReferenceLiteral
(JexlNode child) Checks whether a node is a string or an integer.(package private) boolean
OperatorController.isStrict
(JexlArithmetic arithmetic, JexlNode node) Checks whether an operator is strict for a given arithmetic.protected void
JexlParser.jjtreeCloseNodeScope
(JexlNode node) Called by parser at end of node construction.protected void
JexlParser.jjtreeOpenNodeScope
(JexlNode node) Called by parser at beginning of node construction.(package private) void
SimpleNode.jjtSetChildren
(JexlNode[] jexlNodes) protected void
JexlParser.throwAmbiguousException
(JexlNode node) Throws Ambiguous exception.void
FeatureController.throwFeatureException
(int feature, JexlNode node) Throws a feature exception.protected Object
protected JexlOperator
Constructors in org.apache.commons.jexl3.parser with parameters of type JexlNode