Package org.apache.commons.jexl3.parser
Class ASTNumberLiteral
java.lang.Object
org.apache.commons.jexl3.parser.SimpleNode
org.apache.commons.jexl3.parser.JexlNode
org.apache.commons.jexl3.parser.ASTNumberLiteral
- All Implemented Interfaces:
JexlNode.Constant<Number>
,Node
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.jexl3.parser.JexlNode
JexlNode.Constant<T>, JexlNode.Funcall, JexlNode.Info
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final NumberParser
The number parser.private static final long
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isConstant
(boolean literal) boolean
jjtAccept
(ParserVisitor visitor, Object data) Accepts the visitor.(package private) void
setNatural
(String s) Sets this node as a natural literal.(package private) void
Sets this node as a real literal.toString()
Methods inherited from class org.apache.commons.jexl3.parser.JexlNode
clearCache, getColumn, getLine, isConstant, isGlobalVar, isLeftValue, isSafeLhs, isStrictOperator, jexlInfo, jjtSetFirstToken, jjtSetLastToken
Methods inherited from class org.apache.commons.jexl3.parser.SimpleNode
childrenAccept, dump, dumpOut, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetChildren, jjtSetParent, jjtSetValue, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
nlp
The number parser.
-
-
Constructor Details
-
ASTNumberLiteral
ASTNumberLiteral(int id)
-
-
Method Details
-
getLiteral
- Specified by:
getLiteral
in interfaceJexlNode.Constant<Number>
-
getLiteralClass
-
isConstant
protected boolean isConstant(boolean literal) - Overrides:
isConstant
in classJexlNode
-
isInteger
public boolean isInteger() -
jjtAccept
Description copied from class:SimpleNode
Accepts the visitor.- Specified by:
jjtAccept
in interfaceNode
- Overrides:
jjtAccept
in classSimpleNode
- Parameters:
visitor
- the visitordata
- contextual data- Returns:
- result of visit
-
setNatural
Sets this node as a natural literal. Originally from OGNL.- Parameters:
s
- the natural as string
-
setReal
Sets this node as a real literal. Originally from OGNL.- Parameters:
s
- the real as string
-
toString
- Overrides:
toString
in classSimpleNode
-