Class ASTNumberLiteral
java.lang.Object
org.apache.commons.jexl2.parser.SimpleNode
org.apache.commons.jexl2.parser.JexlNode
org.apache.commons.jexl2.parser.ASTNumberLiteral
- All Implemented Interfaces:
JexlInfo, JexlNode.Literal<Number>, Node
-
Nested Class Summary
Nested classes/interfaces inherited from class JexlNode
JexlNode.Literal<T> -
Field Summary
Fields inherited from class SimpleNode
children, id, parent, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the literal value.Class<?> protected booleanisConstant(boolean literal) booleanjjtAccept(ParserVisitor visitor, Object data) Accept the visitor.voidsetNatural(String s) Sets this node as a natural literal.voidSets this node as a real literal.Methods inherited from class JexlNode
debugInfo, debugString, isConstantMethods inherited from class SimpleNode
childrenAccept, dump, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toString
-
Constructor Details
-
ASTNumberLiteral
-
ASTNumberLiteral
-
-
Method Details
-
getLiteral
Gets the literal value.- Specified by:
getLiteralin interfaceJexlNode.Literal<Number>- Returns:
- the number literal
-
isConstant
- Overrides:
isConstantin classJexlNode
-
jjtAccept
Accept the visitor.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin classSimpleNode- Parameters:
visitor- the visitordata- contextual data- Returns:
- result of visit
-
getLiteralClass
-
isInteger
-
setNatural
Sets this node as a natural literal. Originally from OGNL.- Parameters:
s- the natural as string
-
setReal
-