avrora.core.isdl.ast
Class CommentStmt
java.lang.Object
avrora.core.isdl.ast.Stmt
avrora.core.isdl.ast.CommentStmt
- public class CommentStmt
- extends Stmt
Field Summary |
java.lang.String |
comment
The name field stores a reference to the name of the local. |
Method Summary |
Stmt |
accept(StmtRebuilder r,
java.lang.Object env)
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 |
comment
public final java.lang.String comment
- The
name
field stores a reference to the name of the local.
CommentStmt
public CommentStmt(java.lang.String c)
accept
public 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.
- Specified by:
accept
in class Stmt
- Parameters:
v
- the visitor to accept
toString
public java.lang.String toString()
- The
toString()
method recursively converts this statement to a string.
- Returns:
- a string representation of this statement
accept
public Stmt accept(StmtRebuilder r,
java.lang.Object env)
- 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. The
StmtRebuilder
interface allows visitors to rearrange and rebuild the statements.
- Specified by:
accept
in class Stmt
- Parameters:
r
- the visitor to accept
- Returns:
- the result of calling the appropriate
visit()
of the rebuilder passed