Class Label

All Implemented Interfaces:
Constants, RuntimeConstants

public final class Label extends Instruction
A label instruction. This is a 0 size instruction. It is the only valid target of a branch instruction. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
  • Field Details

    • labelCount

      static int labelCount
    • ID

      int ID
    • depth

      int depth
    • locals

  • Constructor Details

    • Label

      public Label()
      Constructor
  • Method Details

    • getDestination

      Label getDestination()
      Get the final destination, eliminate jumps gotos, and jumps to labels that are immediately folowed by another label. The depth field is used to leave bread crumbs to avoid infinite loops.
    • toString

      public String toString()
      Description copied from class: Instruction
      toString
      Overrides:
      toString in class Instruction