Package org.apache.commons.jexl3.parser
Class ExtensibleNode
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ExtensibleNode
- All Implemented Interfaces:
Node
- Direct Known Subclasses:
ASTArrayLiteral
,ASTMapLiteral
,ASTSetLiteral
Base node for array/set/map literals.
Captures constness and extensibility (...)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.jexl3.parser.JexlNode
JexlNode.Constant<T>, JexlNode.Funcall, JexlNode.Info
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Whether this array/set/map is constant or not.private boolean
Whether this array/set/map is extended or not.Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isConstant
(boolean literal) boolean
void
jjtClose()
This method is called after all the child nodes have been added.void
setExtended
(boolean e) toString()
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getColumn, getLine, isConstant, isGlobalVar, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jjtSetFirstToken, jjtSetLastToken
Methods inherited from class org.apache.commons.jexl3.parser.SimpleNode
childrenAccept, dump, dumpOut, getId, jjtAccept, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetChildren, jjtSetParent, jjtSetValue, toString
-
Field Details
-
constant
protected boolean constantWhether this array/set/map is constant or not. -
extended
private boolean extendedWhether this array/set/map is extended or not.
-
-
Constructor Details
-
ExtensibleNode
public ExtensibleNode(int id)
-
-
Method Details
-
isConstant
protected boolean isConstant(boolean literal) - Overrides:
isConstant
in classJexlNode
-
isExtended
public boolean isExtended() -
jjtClose
public void jjtClose()Description copied from interface:Node
This method is called after all the child nodes have been added.- Specified by:
jjtClose
in interfaceNode
- Overrides:
jjtClose
in classSimpleNode
-
setExtended
public void setExtended(boolean e) -
toString
- Overrides:
toString
in classSimpleNode
-