JexlInfo, JexlNode.Literal<java.lang.Number>, Nodepublic class ASTNumberLiteral extends JexlNode implements JexlNode.Literal<java.lang.Number>
JexlNode.Literal<T>children, id, parent, value| Constructor | Description |
|---|---|
ASTNumberLiteral(int id) |
|
ASTNumberLiteral(Parser p,
int id) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Number |
getLiteral() |
Gets the literal value.
|
java.lang.Class<?> |
getLiteralClass() |
|
protected boolean |
isConstant(boolean literal) |
|
boolean |
isInteger() |
|
java.lang.Object |
jjtAccept(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, isConstantclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchildrenAccept, dump, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtGetValue, jjtOpen, jjtSetParent, jjtSetValue, toString, toStringpublic ASTNumberLiteral(int id)
public ASTNumberLiteral(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(ParserVisitor visitor, java.lang.Object data)
jjtAccept in interface 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 string