avrora.core.isdl.ast
Class Stmt

java.lang.Object
  extended byavrora.core.isdl.ast.Stmt
Direct Known Subclasses:
AssignStmt, CallStmt, CommentStmt, DeclStmt, IfStmt, ReturnStmt

public abstract class Stmt
extends java.lang.Object

The Stmt class represents a statement in the IR that expresses the computation of an instruction.


Constructor Summary
Stmt()
           
 
Method Summary
abstract  Stmt accept(StmtRebuilder v, 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.
abstract  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stmt

public Stmt()
Method Detail

accept

public abstract 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.

Parameters:
v - the visitor to accept

accept

public abstract Stmt accept(StmtRebuilder v,
                            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.

Parameters:
v - the visitor to accept
Returns:
the result of calling the appropriate visit() of the rebuilder passed