Class JexlNode
java.lang.Object
org.apache.commons.jexl2.parser.SimpleNode
org.apache.commons.jexl2.parser.JexlNode
- Direct Known Subclasses:
ASTAdditiveNode, ASTAdditiveOperator, ASTAmbiguous, ASTAndNode, ASTArrayAccess, ASTArrayLiteral, ASTAssignment, ASTBitwiseAndNode, ASTBitwiseComplNode, ASTBitwiseOrNode, ASTBitwiseXorNode, ASTBlock, ASTConstructorNode, ASTDivNode, ASTEmptyFunction, ASTEQNode, ASTERNode, ASTFalseNode, ASTFloatLiteral, ASTForeachStatement, ASTFunctionNode, ASTGENode, ASTGTNode, ASTIdentifier, ASTIfStatement, ASTIntegerLiteral, ASTJexlScript, ASTLENode, ASTLTNode, ASTMapEntry, ASTMapLiteral, ASTMethodNode, ASTModNode, ASTMulNode, ASTNENode, ASTNotNode, ASTNRNode, ASTNullLiteral, ASTNumberLiteral, ASTOrNode, ASTReference, ASTReturnStatement, ASTSizeFunction, ASTSizeMethod, ASTStringLiteral, ASTTernaryNode, ASTTrueNode, ASTUnaryMinusNode, ASTWhileStatement
Base class for parser nodes - holds an 'image' of the token for later use.
- Since:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA marker interface for literals. -
Field Summary
FieldsFields inherited from class SimpleNode
children, id, parent, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the underlying debugging information.Formats this information for debugging purpose.final booleanWhether this node is a constant node Its value can not change after the first evaluation and can be cached indefinitely.protected booleanisConstant(boolean literal) Methods inherited from class SimpleNode
childrenAccept, dump, getId, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
Field Details
-
image
-
-
Constructor Details
-
JexlNode
-
JexlNode
-
-
Method Details
-
debugInfo
-
debugString
Formats this information for debugging purpose.- Specified by:
debugStringin interfaceJexlInfo- Returns:
- a human readable string.
-
isConstant
Whether this node is a constant node Its value can not change after the first evaluation and can be cached indefinitely.- Returns:
- true if constant, false otherwise
-
isConstant
-