Top Fields Constructors Methods
org.apache.commons.jexl2.parser

public final Class ASTArrayLiteral

extends JexlNode
implements JexlNode.Literal<Object>
Class Inheritance
All Implemented Interfaces
org.apache.commons.jexl2.parser.JexlNode.Literal

Field Summary

Modifier and TypeField and Description
pack-priv Object
array

The type literal value.

pack-priv boolean
constant

Whether this array is constant or not.

Inherited from org.apache.commons.jexl2.parser.JexlNode:
image

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the array literal
getLiteral
()

Implements org.apache.commons.jexl2.parser.JexlNode.Literal.getLiteral.

Gets the literal value.
public Object
jjtAccept(ParserVisitor
the visitor
visitor
,
Object
contextual data
data
)

Overrides org.apache.commons.jexl2.parser.SimpleNode.jjtAccept.

Implements org.apache.commons.jexl2.parser.Node.jjtAccept.

Accept the visitor.
public void
jjtClose()

Overrides org.apache.commons.jexl2.parser.SimpleNode.jjtClose.

Implements org.apache.commons.jexl2.parser.Node.jjtClose.

This method is called after all the child nodes have been added.
public void
setLiteral(Object
the literal array value
literal
)

Sets the literal value only if the descendants of this node compose a constant

Inherited from org.apache.commons.jexl2.parser.JexlNode:
debugInfodebugStringisConstantisConstant

Field Detail

arrayback to summary
pack-priv Object array

The type literal value.

constantback to summary
pack-priv boolean constant

Whether this array is constant or not.

Constructor Detail

ASTArrayLiteralback to summary
pack-priv ASTArrayLiteral(int id)
ASTArrayLiteralback to summary
pack-priv ASTArrayLiteral(Parser p, int id)

Method Detail

getLiteralback to summary
public Object getLiteral()

Implements org.apache.commons.jexl2.parser.JexlNode.Literal.getLiteral.

Gets the literal value.

Returns:Object

the array literal

jjtAcceptback to summary
public Object jjtAccept(ParserVisitor visitor, Object data)

Overrides org.apache.commons.jexl2.parser.SimpleNode.jjtAccept.

Implements org.apache.commons.jexl2.parser.Node.jjtAccept.

Doc from org.apache.commons.jexl2.parser.SimpleNode.jjtAccept.

Accept the visitor.

Parameters
visitor:ParserVisitor

the visitor

data:Object

contextual data

Returns:Object

result of visit

Annotations
@Override
jjtCloseback to summary
public void jjtClose()

Overrides org.apache.commons.jexl2.parser.SimpleNode.jjtClose.

Implements org.apache.commons.jexl2.parser.Node.jjtClose.

Doc from org.apache.commons.jexl2.parser.SimpleNode.jjtClose.

This method is called after all the child nodes have been added.

Annotations
@Override
setLiteralback to summary
public void setLiteral(Object literal)

Sets the literal value only if the descendants of this node compose a constant

Parameters
literal:Object

the literal array value

Exceptions
IllegalArgumentException:
if literal is not an array or null