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
public final class ASTNumberLiteral
- extends JexlNode
- implements JexlNode.Constant<Number>
Fields inherited from class org.apache.commons.jexl3.parser.SimpleNode |
id |
Methods inherited from class org.apache.commons.jexl3.parser.SimpleNode |
childrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString |
toString
public String toString()
- Overrides:
toString
in class SimpleNode
getLiteral
public Number getLiteral()
- Specified by:
getLiteral
in interface JexlNode.Constant<Number>
isConstant
protected boolean isConstant(boolean literal)
- Overrides:
isConstant
in class JexlNode
getLiteralClass
public Class<?> getLiteralClass()
isInteger
public boolean isInteger()
jjtAccept
public Object jjtAccept(ParserVisitor visitor,
Object data)
- Description copied from class:
SimpleNode
- Accept the visitor.
- Specified by:
jjtAccept
in interface Node
- Overrides:
jjtAccept
in class SimpleNode
- Parameters:
visitor
- the visitordata
- contextual data
- Returns:
- result of visit
Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.