|
||||||||||
| 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.MapBitRangeAssignStmt
The MapBitRangeAssignment class represents an assignment
to a range of bits of an element within a map.
| Field Summary | |
int |
high_bit
The high_bit field stores the highest bit of the range
of bits being assigned. |
Expr |
index
The index field stores a references to the expression
which is evaluated to yield the index into the map. |
int |
low_bit
The low_bit field stores the lowest bit of the range
of bits being assigned. |
Token |
mapname
The mapname 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 | |
MapBitRangeAssignStmt(Token m,
Expr i,
int l,
int h,
Expr e)
The constructor for the MapAssignStmt class initializes
the public final fields in this class that refer to the elements
of the assignment. |
|
MapBitRangeAssignStmt(Token m,
Expr i,
Token l,
Token h,
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)
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
mapname field stores a reference to the name of
the map whose element is being assigned to.
public final Expr index
index field stores a references to the expression
which is evaluated to yield the index into the map.
public final int low_bit
low_bit field stores the lowest bit of the range
of bits being assigned.
public final int high_bit
high_bit field stores the highest bit of the range
of bits being assigned.
| Constructor Detail |
public MapBitRangeAssignStmt(Token m,
Expr i,
Token l,
Token h,
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 index into the mapl - the low bit of the range as a tokenh - the high bit of the range as a tokene - the expression representing the right hand side of the assignment
public MapBitRangeAssignStmt(Token m,
Expr i,
int l,
int h,
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 index into the mapl - the low bit of the range as an integerh - the high bit of the range as an integere - the 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 | |||||||||