public final class ASTArrayLiteral extends JexlNode implements JexlNode.Literal<java.lang.Object>
JexlNode.Literal<T>
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Object |
array
The type literal value.
|
(package private) boolean |
constant
Whether this array is constant or not.
|
children, id, parent, value
Constructor and Description |
---|
ASTArrayLiteral(int id) |
ASTArrayLiteral(Parser p,
int id) |
Modifier and Type | Method and 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
|
debugInfo, debugString, isConstant, isConstant
childrenAccept, dump, getId, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
java.lang.Object array
boolean constant
ASTArrayLiteral(int id)
ASTArrayLiteral(Parser p, int id)
public void jjtClose()
jjtClose
in interface Node
jjtClose
in class SimpleNode
public java.lang.Object getLiteral()
getLiteral
in interface JexlNode.Literal<java.lang.Object>
public void setLiteral(java.lang.Object literal)
literal
- the literal array valuejava.lang.IllegalArgumentException
- if literal is not an array or nullpublic java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
visitor
- the visitordata
- contextual data