|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.core.isdl.ast.Stmt
avrora.core.isdl.ast.CallStmt
The CallStmt class represents a call to a subroutine that
does not produce a value.
| Field Summary | |
java.util.List |
args
The args fields stores a reference to a list of expressions
that are evaluated and passed as arguments to the subroutine. |
Token |
method
The method field stores a string that represents
the name of the subroutine being called. |
| Constructor Summary | |
CallStmt(Token m,
java.util.List a)
The constructor of the CallStmt class simply initializes the
references to the subroutine name and arguments. |
|
| Method Summary | |
Stmt |
accept(StmtRebuilder r)
The accept() method implements one half of the visitor
pattern for visiting the abstract syntax trees representing the
code of a particular instruction or subroutine. |
void |
accept(StmtVisitor v)
The accept() method implements one half of the visitor
pattern for visiting the abstract syntax trees representing the
code of a particular instruction or subroutine. |
java.lang.String |
toString()
The toString() method recursively converts this statement
to a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final Token method
method field stores a string that represents
the name of the subroutine being called.
public final java.util.List args
args fields stores a reference to a list of expressions
that are evaluated and passed as arguments to the subroutine.
| Constructor Detail |
public CallStmt(Token m,
java.util.List a)
CallStmt class simply initializes the
references to the subroutine name and arguments.
m - the name of the subroutine as a stringa - list of expressions representing the arguments to the subroutine| Method Detail |
public void accept(StmtVisitor v)
accept() method implements one half of the visitor
pattern for visiting the abstract syntax trees representing the
code of a particular instruction or subroutine.
accept in class Stmtv - the visitor to acceptpublic java.lang.String toString()
toString() method recursively converts this statement
to a string.
public Stmt accept(StmtRebuilder r)
accept() method implements one half of the visitor
pattern for visiting the abstract syntax trees representing the
code of a particular instruction or subroutine. The
StmtRebuilder interface allows visitors to rearrange
and rebuild the statements.
accept in class Stmtr - the visitor to accept
visit()
of the rebuilder passed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||