Class LocalDebugInfo

java.lang.Object
EDU.purdue.cs.bloat.reflect.LocalDebugInfo

public class LocalDebugInfo extends Object
LocalDebugInfo is used to map a local variable index in a range of instructions to a local in the original Java source file. In addition, LocalDebugInfo keeps track of a local variable's name and type (as indices into the constant pool) and which number local variable is being represented. Instances of file.LocalVariableTable consist of an array of LocalDebugInfo.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalDebugInfo(int startPC, int length, int nameIndex, int typeIndex, int index)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    int
    Get the index of this variable into the local variable array for the method.
    int
    Get the length of the live range of the variable.
    int
    Get the index into the constant pool of the name of the variable.
    int
    Get the start PC of the live range of the variable.
    Returns a string representation of the attribute.
    int
    Get the index into the constant pool of the type descriptor of the variable.

    Methods inherited from class Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LocalDebugInfo

      public LocalDebugInfo(int startPC, int length, int nameIndex, int typeIndex, int index)
      Constructor.
      Parameters:
      startPC - The start PC of the live range of the variable.
      length - The length of the live range of the variable.
      nameIndex - The index into the constant pool of the name of the variable.
      typeIndex - The index into the constant pool of the type descriptor of the variable.
      index - The index of this variable into the local variable array for the method.
  • Method Details

    • startPC

      public int startPC()
      Get the start PC of the live range of the variable.
      Returns:
      The start PC of the live range of the variable.
    • length

      public int length()
      Get the length of the live range of the variable.
      Returns:
      The length of the live range of the variable.
    • nameIndex

      public int nameIndex()
      Get the index into the constant pool of the name of the variable.
      Returns:
      The index into the constant pool of the name of the variable.
    • typeIndex

      public int typeIndex()
      Get the index into the constant pool of the type descriptor of the variable.
      Returns:
      The index into the constant pool of the type descriptor of the variable.
    • index

      public int index()
      Get the index of this variable into the local variable array for the method.
      Returns:
      The index of this variable into the local variable array for the method.
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Returns a string representation of the attribute.
      Overrides:
      toString in class Object