public class Label
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static boolean |
TRACE |
| Constructor | Description |
|---|---|
Label(int index) |
Constructor.
|
Label(int index,
boolean startsBlock) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
Check if an object is equal to this label.
|
int |
hashCode() |
Hash the label.
|
int |
index() |
Get the index of the label.
|
void |
setComment(java.lang.String comment) |
Sets the comment associated with this Label.
|
void |
setStartsBlock(boolean startsBlock) |
Set if the label starts a block.
|
boolean |
startsBlock() |
Check if the label starts a block.
|
java.lang.String |
toString() |
Convert the label to a string.
|
public Label(int index)
index - A unique index for the label. For instance, its offset in the
instruction array.public Label(int index,
boolean startsBlock)
index - The index of this label into the instruction arraystartsBlock - True if the label is the first instruction in a basic block,
false if not.public void setComment(java.lang.String comment)
public void setStartsBlock(boolean startsBlock)
startsBlock - True if the label starts a block, false if not.public boolean startsBlock()
public int index()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The object to compare against.public java.lang.String toString()
toString in class java.lang.Object