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.Object
getLiteral()
Gets the literal value.java.lang.Object
jjtAccept(ParserVisitor visitor, java.lang.Object data)
Accept the visitor.void
jjtClose()
This method is called after all the child nodes have been added.void
setLiteral(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, 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:
jjtClose
in interfaceNode
- Overrides:
jjtClose
in classSimpleNode
-
getLiteral
public java.lang.Object getLiteral()
Gets the literal value.- Specified by:
getLiteral
in 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:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-
-