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 NumberParserThe number parser.private static final longFields inherited from class org.apache.commons.jexl3.parser.SimpleNode
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisConstant(boolean literal) booleanjjtAccept(ParserVisitor visitor, Object data) Accepts the visitor.(package private) voidsetNatural(String s) Sets this node as a natural literal.(package private) voidSets 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, jjtSetLastTokenMethods 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:
getLiteralin interfaceJexlNode.Constant<Number>
-
getLiteralClass
-
isConstant
protected boolean isConstant(boolean literal) - Overrides:
isConstantin classJexlNode
-
isInteger
public boolean isInteger() -
jjtAccept
Description copied from class:SimpleNodeAccepts the visitor.- Specified by:
jjtAcceptin interfaceNode- Overrides:
jjtAcceptin 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:
toStringin classSimpleNode
-