org.apache.commons.jexl2.parser
Class ASTArrayLiteral

java.lang.Object
  extended by org.apache.commons.jexl2.parser.SimpleNode
      extended by org.apache.commons.jexl2.parser.JexlNode
          extended by org.apache.commons.jexl2.parser.ASTArrayLiteral
All Implemented Interfaces:
JexlInfo, JexlNode.Literal<Object>, Node

public final class ASTArrayLiteral
extends JexlNode
implements JexlNode.Literal<Object>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.jexl2.parser.JexlNode
JexlNode.Literal<T>
 
Field Summary
 
Fields inherited from class org.apache.commons.jexl2.parser.JexlNode
image
 
Fields inherited from class org.apache.commons.jexl2.parser.SimpleNode
children, id, parent, value
 
Method Summary
 Object getLiteral()
          Gets the literal value.
 Object jjtAccept(ParserVisitor visitor, Object data)
          Accept the visitor.
 void jjtClose()
          This method is called after all the child nodes have been added.
 void setLiteral(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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 visitor
data - contextual data
Returns:
result of visit


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.