类 Label
- java.lang.Object
- org.springframework.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. 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.).- 作者:
- Eric Bruneton
构造器概要
构造器 构造器 说明 Label()
Constructs a new label.
构造器详细资料
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 forAttribute
sub classes, and is normally not needed by class generators or adapters.- 返回:
- the offset corresponding to this label.
- 抛出:
IllegalStateException
- if this label is not resolved yet.