Top Description Inners Fields Constructors Methods
org.apache.commons.jexl2.parser

public abstract Class JexlNode

extends SimpleNode
implements JexlInfo
Class Inheritance
All Implemented Interfaces
org.apache.commons.jexl2.JexlInfo
Known Direct Subclasses
org.apache.commons.jexl2.parser.ASTFalseNode, org.apache.commons.jexl2.parser.ASTFloatLiteral, org.apache.commons.jexl2.parser.ASTForeachStatement, org.apache.commons.jexl2.parser.ASTFunctionNode, org.apache.commons.jexl2.parser.ASTGENode, org.apache.commons.jexl2.parser.ASTGTNode, org.apache.commons.jexl2.parser.ASTIdentifier, org.apache.commons.jexl2.parser.ASTIfStatement, org.apache.commons.jexl2.parser.ASTIntegerLiteral, org.apache.commons.jexl2.parser.ASTJexlScript, org.apache.commons.jexl2.parser.ASTLENode, org.apache.commons.jexl2.parser.ASTLTNode, org.apache.commons.jexl2.parser.ASTMapEntry, org.apache.commons.jexl2.parser.ASTMapLiteral, org.apache.commons.jexl2.parser.ASTMethodNode, org.apache.commons.jexl2.parser.ASTModNode, org.apache.commons.jexl2.parser.ASTMulNode, org.apache.commons.jexl2.parser.ASTNENode, org.apache.commons.jexl2.parser.ASTNotNode, org.apache.commons.jexl2.parser.ASTNRNode, org.apache.commons.jexl2.parser.ASTNullLiteral, org.apache.commons.jexl2.parser.ASTERNode, org.apache.commons.jexl2.parser.ASTNumberLiteral, org.apache.commons.jexl2.parser.ASTAdditiveNode, org.apache.commons.jexl2.parser.ASTAdditiveOperator, org.apache.commons.jexl2.parser.ASTAmbiguous, org.apache.commons.jexl2.parser.ASTAndNode, org.apache.commons.jexl2.parser.ASTArrayAccess, org.apache.commons.jexl2.parser.ASTArrayLiteral, org.apache.commons.jexl2.parser.ASTAssignment, org.apache.commons.jexl2.parser.ASTBitwiseAndNode, org.apache.commons.jexl2.parser.ASTBitwiseComplNode, org.apache.commons.jexl2.parser.ASTBitwiseOrNode, org.apache.commons.jexl2.parser.ASTBitwiseXorNode, org.apache.commons.jexl2.parser.ASTBlock, org.apache.commons.jexl2.parser.ASTConstructorNode, org.apache.commons.jexl2.parser.ASTDivNode, org.apache.commons.jexl2.parser.ASTEmptyFunction, org.apache.commons.jexl2.parser.ASTEQNode, org.apache.commons.jexl2.parser.ASTOrNode, org.apache.commons.jexl2.parser.ASTReference, org.apache.commons.jexl2.parser.ASTReturnStatement, org.apache.commons.jexl2.parser.ASTSizeFunction, org.apache.commons.jexl2.parser.ASTSizeMethod, org.apache.commons.jexl2.parser.ASTStringLiteral, org.apache.commons.jexl2.parser.ASTTernaryNode, org.apache.commons.jexl2.parser.ASTTrueNode, org.apache.commons.jexl2.parser.ASTUnaryMinusNode, org.apache.commons.jexl2.parser.ASTWhileStatement
Imports
org.apache.commons.jexl2.DebugInfo, .JexlInfo

Base class for parser nodes - holds an 'image' of the token for later use.
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
JexlNode.Literal<
the literal type
T
>

A marker interface for literals.

Field Summary

Modifier and TypeField and Description
public String
image

token value.

Inherited from org.apache.commons.jexl2.parser.SimpleNode:
childrenidparentvalue

Constructor Summary

AccessConstructor and Description
public
JexlNode(int id)

public
JexlNode(Parser p, int id)

Method Summary

Modifier and TypeMethod and Description
public DebugInfo
debugInfo()

Implements org.apache.commons.jexl2.JexlInfo.debugInfo.

Gets the underlying debugging information.
public String
debugString()

Implements org.apache.commons.jexl2.JexlInfo.debugString.

Formats this information for debugging purpose.
public final boolean

Returns:

true if constant, false otherwise
isConstant
()

Whether this node is a constant node Its value can not change after the first evaluation and can be cached indefinitely.

protected boolean
isConstant(boolean literal)

Inherited from org.apache.commons.jexl2.parser.SimpleNode:
childrenAcceptdumpjjtAcceptjjtAddChildjjtClosejjtGetChildjjtGetNumChildrenjjtGetParentjjtGetValuejjtOpenjjtSetParentjjtSetValuetoStringtoString

Field Detail

imageback to summary
public String image

token value.

Constructor Detail

JexlNodeback to summary
public JexlNode(int id)
JexlNodeback to summary
public JexlNode(Parser p, int id)

Method Detail

debugInfoback to summary
public DebugInfo debugInfo()

Implements org.apache.commons.jexl2.JexlInfo.debugInfo.

Doc from org.apache.commons.jexl2.JexlInfo.debugInfo.

Gets the underlying debugging information.

Returns:DebugInfo

a debug info instance

debugStringback to summary
public String debugString()

Implements org.apache.commons.jexl2.JexlInfo.debugString.

Doc from org.apache.commons.jexl2.JexlInfo.debugString.

Formats this information for debugging purpose.

Returns:String

a human readable string.

isConstantback to summary
public final boolean isConstant()

Whether this node is a constant node Its value can not change after the first evaluation and can be cached indefinitely.

Returns:boolean

true if constant, false otherwise

isConstantback to summary
protected boolean isConstant(boolean literal)
org.apache.commons.jexl2.parser back to summary

public Interface JexlNode.Literal<T>

Known Direct Implementers
org.apache.commons.jexl2.parser.ASTFloatLiteral, org.apache.commons.jexl2.parser.ASTIntegerLiteral, org.apache.commons.jexl2.parser.ASTMapLiteral, org.apache.commons.jexl2.parser.ASTNumberLiteral, org.apache.commons.jexl2.parser.ASTArrayLiteral, org.apache.commons.jexl2.parser.ASTStringLiteral
Type Parameters
<T>
the literal type

A marker interface for literals.

Method Summary

Modifier and TypeMethod and Description
public T

Method Detail

getLiteralback to summary
public T getLiteral()