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

public final Class ASTMapLiteral

extends JexlNode
implements JexlNode.Literal<Object>
Class Inheritance
All Implemented Interfaces
org.apache.commons.jexl2.parser.JexlNode.Literal
Imports
java.util.Collections, .Map

Field Summary

Modifier and TypeField and Description
pack-priv boolean
constant

Whether this array is constant or not.

pack-priv Map<?, ?>
map

The type literal value.

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

Constructor Summary

AccessConstructor and Description
pack-priv
ASTMapLiteral(int id)

pack-priv
ASTMapLiteral(Parser p, int id)

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

constantback to summary
pack-priv boolean constant

Whether this array is constant or not.

mapback to summary
pack-priv Map<?, ?> map

The type literal value.

Constructor Detail

ASTMapLiteralback to summary
pack-priv ASTMapLiteral(int id)
ASTMapLiteralback to summary
pack-priv ASTMapLiteral(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