Package org.apache.commons.jexl3.parser
Class ASTArrayLiteral
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ASTArrayLiteral
- All Implemented Interfaces:
Node
An array literal.
-
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 TypeFieldDescriptionprivate boolean
Whether this array is constant or not.private static final long
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isConstant
(boolean literal) jjtAccept
(ParserVisitor visitor, Object data) Accept the visitor.void
jjtClose()
This method is called after all the child nodes have been added.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, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetChildren, jjtSetParent, jjtSetValue, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
constant
private boolean constantWhether this array is constant or not.
-
-
Constructor Details
-
ASTArrayLiteral
ASTArrayLiteral(int id) -
ASTArrayLiteral
ASTArrayLiteral(Parser p, int id)
-
-
Method Details
-
toString
- Overrides:
toString
in classSimpleNode
-
isConstant
protected boolean isConstant(boolean literal) - Overrides:
isConstant
in classJexlNode
-
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
-
jjtAccept
Description copied from class:SimpleNode
Accept the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-