public final class DeclNewStatement extends DeclCallStatement
name, type
args, method
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
static DeclNewStatement |
construct(TypeExpression type,
Identifier var,
Name method,
ValueExpression[] args)
Construct a call statement with a result value assigned to a variable.
|
static DeclNewStatement |
construct(TypeExpression type,
Identifier var,
Name method,
java.util.Vector<ValueExpression> args)
Construct a call statement with a result value assigned to a variable.
|
accept, acceptChildren, getName, getType
getKind, getMethodSymbol, setMethodSymbol
getAnnotation, getJudgement, setAnnotation, setJudgement
getPosition, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPosition, setPosition
print, printCore, toString, toStringCore
public static DeclNewStatement construct(TypeExpression type, Identifier var, Name method, java.util.Vector<ValueExpression> args)
type
- the type of the variablevar
- the name of the variablemethod
- the method nameargs
- the method argumentspublic static DeclNewStatement construct(TypeExpression type, Identifier var, Name method, ValueExpression[] args)
type
- the type of the variablevar
- the name of the variablemethod
- the method nameargs
- the method argumentspublic void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class DeclCallStatement
visitor
- the visitor who is accepted by this node.