Package org.apache.commons.jexl2.parser
Class ASTArrayLiteral
java.lang.Object
org.apache.commons.jexl2.parser.SimpleNode
org.apache.commons.jexl2.parser.JexlNode
org.apache.commons.jexl2.parser.ASTArrayLiteral
- All Implemented Interfaces:
JexlInfo
,JexlNode.Literal<Object>
,Node
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.jexl2.parser.JexlNode
JexlNode.Literal<T>
-
Field Summary
Fields inherited from class org.apache.commons.jexl2.parser.SimpleNode
children, id, parent, value
-
Method Summary
Modifier and TypeMethodDescriptionGets the literal value.jjtAccept
(ParserVisitor visitor, Object data) Accept the visitor.void
jjtClose()
This method is called after all the child nodes have been added.void
setLiteral
(Object literal) Sets the literal value only if the descendants of this node compose a constantMethods inherited from class org.apache.commons.jexl2.parser.JexlNode
debugInfo, debugString, isConstant, isConstant
Methods inherited from class org.apache.commons.jexl2.parser.SimpleNode
childrenAccept, dump, getId, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
Method Details
-
jjtClose
This method is called after all the child nodes have been added.- Specified by:
jjtClose
in interfaceNode
- Overrides:
jjtClose
in classSimpleNode
-
getLiteral
Gets the literal value.- Specified by:
getLiteral
in interfaceJexlNode.Literal<Object>
- Returns:
- the array literal
-
setLiteral
Sets the literal value only if the descendants of this node compose a constant- Parameters:
literal
- the literal array value- Throws:
IllegalArgumentException
- if literal is not an array or null
-
jjtAccept
Accept the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-