| java.lang.Object EDU.purdue.cs.bloat.editor.Label
Field Summary | |
public static boolean | TRACE |
Constructor Summary | |
public | Label(int index) Constructor.
Parameters: index - A unique index for the label. | public | Label(int index, boolean startsBlock) Constructor. |
Method Summary | |
public boolean | equals(Object obj) Check if an object is equal to this label.
Parameters: obj - The object to compare against. | public int | hashCode() Hash the label. | public int | index() Get the index of the label. | public void | setComment(String comment) Sets the comment associated with this Label. | public void | setStartsBlock(boolean startsBlock) Set if the label starts a block. | public boolean | startsBlock() Check if the label starts a block. | public String | toString() Convert the label to a string. |
TRACE | public static boolean TRACE(Code) | | |
Label | public Label(int index)(Code) | | Constructor.
Parameters: index - A unique index for the label. For instance, its offset in theinstruction array. |
Label | public Label(int index, boolean startsBlock)(Code) | | Constructor.
Parameters: index - The index of this label into the instruction array Parameters: startsBlock - True if the label is the first instruction in a basic block,false if not. |
equals | public boolean equals(Object obj)(Code) | | Check if an object is equal to this label.
Parameters: obj - The object to compare against. true if equal, false if not. |
hashCode | public int hashCode()(Code) | | Hash the label.
The hash code. |
index | public int index()(Code) | | Get the index of the label.
The index of the label. |
setComment | public void setComment(String comment)(Code) | | Sets the comment associated with this Label.
|
setStartsBlock | public void setStartsBlock(boolean startsBlock)(Code) | | Set if the label starts a block.
Parameters: startsBlock - True if the label starts a block, false if not. |
startsBlock | public boolean startsBlock()(Code) | | Check if the label starts a block.
True if the label starts a block, false if not. |
toString | public String toString()(Code) | | Convert the label to a string.
A string representation of the label. |
|
|