public final class NewArrayExpression extends ValueExpressionBase
| Modifier and Type | Field and Description |
|---|---|
ValueExpression |
length |
static int |
precedence |
TypeExpression |
type |
| 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 NewArrayExpression |
construct(TypeExpression type,
ValueExpression length)
Allocation of a new object.
|
int |
getPrecedence()
Get precedence value of the expression operator
(higher precedence value means higher binding power)
|
accept, accept, print, printCore, toString, toStringCoreequals, getClass, hashCode, notify, notifyAll, wait, wait, waitprint, printCore, toString, toStringCorepublic static final int precedence
public final TypeExpression type
public final ValueExpression length
public static NewArrayExpression construct(TypeExpression type, ValueExpression length)
type - the type of the object.length - the length of the array.public void accept(ASTVisitorOld visitor)
accept in interface ASTaccept in class ASTProgramBasevisitor - the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept in interface ASTaccept in class ValueExpressionBasevisitor - the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren in interface ASTacceptChildren in class ASTBasevisitor - the visitor who is accepted by the children of this node.public int getPrecedence()