public class ASTNumberLiteral extends JexlNode implements JexlNode.Literal<java.lang.Number>
JexlNode.Literal<T>children, id, parent, value| Constructor and Description |
|---|
ASTNumberLiteral(int id) |
ASTNumberLiteral(org.apache.commons.jexl2.parser.Parser p,
int id) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Number |
getLiteral()
Gets the literal value.
|
java.lang.Class<?> |
getLiteralClass() |
protected boolean |
isConstant(boolean literal) |
boolean |
isInteger() |
java.lang.Object |
jjtAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
void |
setNatural(java.lang.String s)
Sets this node as a natural literal.
|
void |
setReal(java.lang.String s)
Sets this node as a real literal.
|
debugInfo, debugString, isConstantchildrenAccept, dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toStringpublic ASTNumberLiteral(int id)
public ASTNumberLiteral(org.apache.commons.jexl2.parser.Parser p,
int id)
public java.lang.Number getLiteral()
getLiteral in interface JexlNode.Literal<java.lang.Number>protected boolean isConstant(boolean literal)
isConstant in class JexlNodepublic java.lang.Object jjtAccept(org.apache.commons.jexl2.parser.ParserVisitor visitor,
java.lang.Object data)
jjtAccept in interface org.apache.commons.jexl2.parser.NodejjtAccept in class SimpleNodevisitor - the visitordata - contextual datapublic java.lang.Class<?> getLiteralClass()
public boolean isInteger()
public void setNatural(java.lang.String s)
s - the natural as stringpublic void setReal(java.lang.String s)
s - the real as stringCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.