public final class IntLiteral extends ValueExpressionBase
Modifier and Type | Field and Description |
---|---|
java.lang.String |
digits |
static IntLiteral |
one |
static int |
precedence |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
static IntLiteral |
construct(java.lang.String digits)
Construction of an integer literal.
|
int |
getPrecedence()
Get precedence value of the expression operator
(higher precedence value means higher binding power)
|
accept, accept, acceptChildren, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptChildren, print, printCore, toString, toStringCore
public static final int precedence
public static final IntLiteral one
public final java.lang.String digits
public static IntLiteral construct(java.lang.String digits)
digits
- the sequence of decimal digits denoting the literal.public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class ASTProgramBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class ValueExpressionBase
visitor
- the visitor who is accepted by this node.public int getPrecedence()