public final class VariableValue extends ValueExpressionBase
Modifier and Type | Field and Description |
---|---|
Identifier |
ident |
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.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
static VariableValue |
construct(Identifier ident)
Construction of a variable denoting a value.
|
static VariableValue |
construct(LeftValue lval)
Construction of a variable denoting a value.
|
int |
getPrecedence()
Get precedence value of the expression operator
(higher precedence value means higher binding power)
|
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
print, printCore, toString, toStringCore
public static final int precedence
public final Identifier ident
public static VariableValue construct(LeftValue lval)
lval
- a left value from which the variable is to be constructed.public static VariableValue construct(Identifier ident)
ident
- the identifier denoting the variable.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 void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class ASTBase
visitor
- the visitor who is accepted by the children of this node.public int getPrecedence()