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.


Constructor Index

 o Label(CodeAttr)
 o Label(Method)

Method Index

 o define(CodeAttr)
Define the value of a label as having the current location.
 o define(Method)
Define the value of a label as having the current location.
 o defined()
 o emit(CodeAttr)
Emit a reference to the current label.
 o emit_wide(CodeAttr, int)
Emit a wide reference to the current label.

Constructors

 o Label
 public Label(Method method)
 o Label
 public Label(CodeAttr code)

Methods

 o defined
 public final boolean defined()
 o define
 public void define(Method method)
Define the value of a label as having the current location.

Parameters:
method - the current method
 o 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
 o 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.
 o 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