|
||||||||||
| 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.AssignStmt
avrora.core.isdl.ast.VarBitAssignStmt
The VarBitAssignStmt class represents an assignment
to a single bit within a local or global variable.
| Field Summary | |
Expr |
bit
The bit field stores a reference to the expression
that represents the index of the bit to assign to. |
Token |
variable
The variable field stores a reference to the token
that represents the name of the variable being assigned to. |
| Fields inherited from class avrora.core.isdl.ast.AssignStmt |
expr |
| Constructor Summary | |
VarBitAssignStmt(Token m,
Expr b,
Expr e)
The constructor for the VarAssignStmt class simply
initializes the internal references to the internal members of
this assignment. |
|
| 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 variable
variable field stores a reference to the token
that represents the name of the variable being assigned to.
public final Expr bit
bit field stores a reference to the expression
that represents the index of the bit to assign to.
| Constructor Detail |
public VarBitAssignStmt(Token m,
Expr b,
Expr e)
VarAssignStmt class simply
initializes the internal references to the internal members of
this assignment.
m - the string name of the variable as a tokenb - an expression representing the index of the bite - an expression representing the right hand side of the assignment| 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 | |||||||||