public class DeclCallStatement extends CallStatement implements VariableDeclaration
Modifier and Type | Field and Description |
---|---|
Identifier |
name |
TypeExpression |
type |
args, method
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 DeclCallStatement |
construct(TypeExpression type,
Identifier var,
Name method,
ValueExpression[] args)
Construct a call statement with a result value assigned to a variable.
|
static DeclCallStatement |
construct(TypeExpression type,
Identifier var,
Name method,
java.util.Vector<ValueExpression> args)
Construct a call statement with a result value assigned to a variable.
|
Identifier |
getName()
Get the name of the declared entity.
|
TypeExpression |
getType()
Get the type of the declared entity.
|
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 final TypeExpression type
public final Identifier name
public static DeclCallStatement 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 DeclCallStatement 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(ASTVisitorOld visitor)
accept
in interface AST
accept
in class CallStatement
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class CallStatement
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class CallStatement
visitor
- the visitor who is accepted by the children of this node.public Identifier getName()
getName
in interface Declaration
public TypeExpression getType()
getType
in interface VariableDeclaration