|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.core.isdl.ast.Stmt avrora.core.isdl.ast.AssignStmt avrora.core.isdl.ast.MapBitAssignStmt
The MapBitAssignStmt
represents an assignment to a single bit within an element within a map.
Field Summary | |
Expr |
bit
The bit field stores a reference to the expression which is evaluated to yield the bit
expr into the element of the map. |
Expr |
index
The expr field stores a references to the expression which is evaluated to yield the expr
into the map. |
Token |
mapname
The typename field stores a reference to the name of the map whose element is being
assigned to. |
Fields inherited from class avrora.core.isdl.ast.AssignStmt |
expr |
Constructor Summary | |
MapBitAssignStmt(java.lang.String m,
Expr i,
Expr b,
Expr e)
The constructor for the MapAssignStmt class initializes the public final fields in this
class that refer to the elements of the assignment. |
|
MapBitAssignStmt(Token m,
Expr i,
Expr b,
Expr e)
The constructor for the MapAssignStmt class initializes the public final fields in this
class that refer to the elements of the assignment. |
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 |
Field Detail |
public final Token mapname
typename
field stores a reference to the name of the map whose element is being
assigned to.
public final Expr index
expr
field stores a references to the expression which is evaluated to yield the expr
into the map.
public final Expr bit
bit
field stores a reference to the expression which is evaluated to yield the bit
expr into the element of the map.
Constructor Detail |
public MapBitAssignStmt(Token m, Expr i, Expr b, Expr e)
MapAssignStmt
class initializes the public final fields in this
class that refer to the elements of the assignment.
m
- the string name of the map as a tokeni
- the expression representing the expr into the mapb
- the expression representing the bit expr into the elemente
- the expression representing the right hand side of the assignmentpublic MapBitAssignStmt(java.lang.String m, Expr i, Expr b, Expr e)
MapAssignStmt
class initializes the public final fields in this
class that refer to the elements of the assignment.
m
- the string name of the map as a tokeni
- the expression representing the expr into the mapb
- the expression representing the bit expr into the elemente
- the expression representing the right hand side of the assignmentMethod 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 Stmt
v
- the visitor to acceptpublic java.lang.String toString()
toString()
method recursively converts this statement to a string.
public Stmt accept(StmtRebuilder r, java.lang.Object env)
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 Stmt
r
- 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 |