org.objectweb.asm
Class Label
A label represents a position in the bytecode of a method. Labels are used
for jump, goto, and switch instructions, and for try catch blocks.
Object | info - Field used to associate user information to a label.
|
Label() - Constructs a new label.
|
int | getOffset() - Returns the offset corresponding to this label.
|
String | toString() - Returns a string representation of this label.
|
info
public Object info
Field used to associate user information to a label. Warning: this field
is used by the ASM tree package. In order to use it with the ASM tree
package you must override the
MethodNode.getLabelNode(Label)
method.
Label
public Label()
Constructs a new label.
getOffset
public int getOffset()
Returns the offset corresponding to this label. This offset is computed
from the start of the method's bytecode.
This method is intended for
Attribute
sub classes, and is normally not needed by class
generators or adapters.
- the offset corresponding to this label.
toString
public String toString()
Returns a string representation of this label.
- a string representation of this label.