Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.libraries.asm
Class Label

java.lang.Object
  extended by oracle.toplink.libraries.asm.Label

public class Label
extends java.lang.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.


Constructor Summary
Label()
          Constructs a new label.
 
Method Summary
 int getOffset()
          Returns the offset corresponding to this label.
 java.lang.String toString()
          Returns a string representation of this label.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Label

public Label()
Constructs a new label.

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 for Attribute sub classes, and is normally not needed by class generators or adapters.

Returns:
the offset corresponding to this label.
Throws:
java.lang.IllegalStateException - if this label is not resolved yet.

toString

public java.lang.String toString()
Returns a string representation of this label.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this label.

Copyright © 1998, 2010, Oracle. All Rights Reserved.