|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAsm
Label
public class Label
Represents a label definition. Extends the abstract class Asm.
Field Summary | |
---|---|
protected java.lang.String |
label
String representation of the label. |
Fields inherited from class Asm |
---|
addr, lineNumber |
Constructor Summary | |
---|---|
Label(java.lang.String label,
int lineNumber)
Constructor takes label as an argument. |
Method Summary | |
---|---|
static void |
addToMap(java.lang.String label,
int addr)
Add (label, address) pair to the label map |
static int |
getFromMap(java.lang.String label)
Get the address of some label that was previously added to the map Returns -1 if label was not added to the map |
java.lang.String |
getLabel()
Gets the label |
static boolean |
isLabel(java.lang.String str)
Checks if string is a label |
java.lang.String |
toString()
Returns string representation of label |
Methods inherited from class Asm |
---|
getAddr, getLineNumber, setAddr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String label
Constructor Detail |
---|
public Label(java.lang.String label, int lineNumber)
label
- string representation of the label.lineNumber
- line number of label.Method Detail |
---|
public java.lang.String getLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isLabel(java.lang.String str)
str
- string to check
public static void addToMap(java.lang.String label, int addr)
label
- name of labeladdr
- address of labelpublic static int getFromMap(java.lang.String label)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |