Class ASTMapLiteral
java.lang.Object
org.apache.commons.jexl2.parser.SimpleNode
org.apache.commons.jexl2.parser.JexlNode
org.apache.commons.jexl2.parser.ASTMapLiteral
- All Implemented Interfaces:
JexlInfo, JexlNode.Literal<Object>, Node
-
Nested Class Summary
Nested classes/interfaces inherited from class JexlNode
JexlNode.Literal<T> -
Field Summary
Fields inherited from class SimpleNode
children, id, parent, value -
Method Summary
Modifier and TypeMethodDescriptionGets the literal value.jjtAccept(ParserVisitor visitor, Object data) Accept the visitor.voidjjtClose()This method is called after all the child nodes have been added.voidsetLiteral(Object literal) Sets the literal value only if the descendants of this node compose a constantMethods inherited from class JexlNode
debugInfo, debugString, isConstant, isConstantMethods inherited from class 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:
jjtClosein interfaceNode- Overrides:
jjtClosein classSimpleNode
-
getLiteral
Gets the literal value.- Specified by:
getLiteralin 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:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- the visitordata- contextual data- Returns:
- result of visit
-