Package org.apache.commons.jexl2.parser
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<java.lang.Object>,Node
public final class ASTMapLiteral extends JexlNode implements JexlNode.Literal<java.lang.Object>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.jexl2.parser.JexlNode
JexlNode.Literal<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetLiteral()Gets the literal value.java.lang.ObjectjjtAccept(ParserVisitor visitor, java.lang.Object data)Accept the visitor.voidjjtClose()This method is called after all the child nodes have been added.voidsetLiteral(java.lang.Object literal)Sets the literal value only if the descendants of this node compose a constant-
Methods 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 Detail
-
jjtClose
public void jjtClose()
This method is called after all the child nodes have been added.- Specified by:
jjtClosein interfaceNode- Overrides:
jjtClosein classSimpleNode
-
getLiteral
public java.lang.Object getLiteral()
Gets the literal value.- Specified by:
getLiteralin interfaceJexlNode.Literal<java.lang.Object>- Returns:
- the array literal
-
setLiteral
public void setLiteral(java.lang.Object literal)
Sets the literal value only if the descendants of this node compose a constant- Parameters:
literal- the literal array value- Throws:
java.lang.IllegalArgumentException- if literal is not an array or null
-
jjtAccept
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
Accept the visitor.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- the visitordata- contextual data- Returns:
- result of visit
-
-