Class Label
java.lang.Object
org.springframework.asm.Label
A position in the bytecode of a method. Labels are used for jump, goto, and switch instructions,
 and for try catch blocks. A label designates the instruction that is just after. Note
 however that there can be other elements between a label and the instruction it designates (such
 as other labels, stack map frames, line numbers, etc.).
- Author:
- Eric Bruneton
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
infoA user managed state associated with this 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 getLabelNode method in MethodNode.
 
- 
- 
Constructor Details- 
Labelpublic Label()Constructs a new label.
 
- 
- 
Method Details- 
getOffsetpublic int getOffset()Returns the bytecode 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 bytecode offset corresponding to this label.
- Throws:
- IllegalStateException- if this label is not resolved yet.
 
- 
toString
 
-