All Packages Class Hierarchy This Package Previous Next Index
Class gnu.bytecode.Label
java.lang.Object
|
+----gnu.bytecode.Label
- public class Label
- extends Object
A Label represents a location in a Code attribute.
-
Label(CodeAttr)
-
-
Label(Method)
-
-
define(CodeAttr)
- Define the value of a label as having the current location.
-
define(Method)
- Define the value of a label as having the current location.
-
defined()
-
-
emit(CodeAttr)
- Emit a reference to the current label.
-
emit_wide(CodeAttr, int)
- Emit a wide reference to the current label.
Label
public Label(Method method)
Label
public Label(CodeAttr code)
defined
public final boolean defined()
define
public void define(Method method)
- Define the value of a label as having the current location.
- Parameters:
- method - the current method
define
public void define(CodeAttr code)
- Define the value of a label as having the current location.
- Parameters:
- code - the "Code" attribute of the current method
emit
public void emit(CodeAttr code)
- Emit a reference to the current label.
- Parameters:
- method - the current method
Emit the reference as a 2-byte difference relative to PC-1.
emit_wide
public void emit_wide(CodeAttr code,
int start_offset)
- Emit a wide reference to the current label.
- Parameters:
- method - the current method
Emit the reference as a 4-byte difference relative to PC-offset.
All Packages Class Hierarchy This Package Previous Next Index