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<Object>, Node
public final class ASTMapLiteral
- extends JexlNode
- implements JexlNode.Literal<Object>
Fields inherited from class org.apache.commons.jexl2.parser.JexlNode |
image |
Methods inherited from class org.apache.commons.jexl2.parser.SimpleNode |
childrenAccept, dump, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString |
jjtClose
public void jjtClose()
- This method is called after all the child nodes have been
added.
- Specified by:
jjtClose
in interface Node
- Overrides:
jjtClose
in class SimpleNode
getLiteral
public Object getLiteral()
- Gets the literal value.
- Specified by:
getLiteral
in interface JexlNode.Literal<Object>
- Returns:
- the array literal
setLiteral
public void setLiteral(Object literal)
- 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
public Object jjtAccept(ParserVisitor visitor,
Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface Node
- Overrides:
jjtAccept
in class SimpleNode
- Parameters:
visitor
- the visitordata
- contextual data
- Returns:
- result of visit
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.