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

public Class ASTNumberLiteral

extends JexlNode
implements JexlNode.Literal<Number>
Class Inheritance
All Implemented Interfaces
org.apache.commons.jexl2.parser.JexlNode.Literal
Imports
java.math.BigDecimal, .BigInteger

Field Summary

Modifier and TypeField and Description
pack-priv Class<?>
clazz

The expected class.

pack-priv Number
literal

The type literal value.

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

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public Number

Returns:

the number literal
getLiteral
()

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

Gets the literal value.
public Class<?>
protected boolean
public boolean
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
setNatural(String
the natural as string
s
)

Sets this node as a natural literal.

public void
setReal(String
the real as string
s
)

Sets this node as a real literal.

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

Field Detail

clazzback to summary
pack-priv Class<?> clazz

The expected class.

literalback to summary
pack-priv Number literal

The type literal value.

Constructor Detail

ASTNumberLiteralback to summary
public ASTNumberLiteral(int id)
ASTNumberLiteralback to summary
public ASTNumberLiteral(Parser p, int id)

Method Detail

getLiteralback to summary
public Number getLiteral()

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

Gets the literal value.

Returns:Number

the number literal

getLiteralClassback to summary
public Class<?> getLiteralClass()
isConstantback to summary
protected boolean isConstant(boolean literal)

Overrides org.apache.commons.jexl2.parser.JexlNode.isConstant.

Annotations
@Override
isIntegerback to summary
public boolean isInteger()
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
setNaturalback to summary
public void setNatural(String s)

Sets this node as a natural literal. Originally from OGNL.

Parameters
s:String

the natural as string

setRealback to summary
public void setReal(String s)

Sets this node as a real literal. Originally from OGNL.

Parameters
s:String

the real as string