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
public final class ASTArrayLiteral
- 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, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString |
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.
- 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 Apache Software Foundation. All Rights Reserved.