Class LocalDebugInfo


  • public class LocalDebugInfo
    extends java.lang.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:
    LocalVariableTable
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      int index()
      Get the index of this variable into the local variable array for the method.
      int length()
      Get the length of the live range of the variable.
      int nameIndex()
      Get the index into the constant pool of the name of the variable.
      int startPC()
      Get the start PC of the live range of the variable.
      java.lang.String toString()
      Returns a string representation of the attribute.
      int typeIndex()
      Get the index into the constant pool of the type descriptor of the variable.
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • 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 java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • toString

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