- java.lang.Object
-
- com.sun.xml.ws.org.objectweb.asm.Label
-
public class Label extends Object
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.- Author:
- Eric Bruneton
-
-
Constructor Summary
Constructors Constructor Description Label()Constructs a new label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOffset()Returns the offset corresponding to this label.StringtoString()Returns a string representation of this label.
-
-
-
Field Detail
-
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 thecom.sun.xml.ws.org.objectweb.asm.tree.MethodNode#getLabelNodemethod.
-
-
Method Detail
-
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 forAttributesub classes, and is normally not needed by class generators or adapters.- Returns:
- the offset corresponding to this label.
- Throws:
IllegalStateException- if this label is not resolved yet.
-
-