|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object avrora.core.Register.Set
The Set
class represents a set of registers. This is used to represent classes of
registers that are used as operands to various instructions. For example, an instruction might expect
one of its operands to be a general purpose register that has a number greater than 15; a set of those
registers can be constructed and then a membership test performed.
Field Summary | |
java.lang.String |
contents
The contents field stores a string that represents a summary of the registers that are
in this set. |
Method Summary | |
boolean |
contains(Register reg)
The contains() method tests for membership. |
java.lang.String |
toString()
The toString() method converts this set to a string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final java.lang.String contents
contents
field stores a string that represents a summary of the registers that are
in this set. An example string for the even registers would be "{r0, r2, ..., r30}"
.
Method Detail |
public boolean contains(Register reg)
contains()
method tests for membership. Given a register, it will return true if
that register is a member of this set, and false otherwise.
reg
- the register to test membership of
public java.lang.String toString()
toString()
method converts this set to a string representation. In this
implementation, it simply returns the string representation of the contents.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |