Class LocalDebugInfo
java.lang.Object
EDU.purdue.cs.bloat.reflect.LocalDebugInfo
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
ConstructorsConstructorDescriptionLocalDebugInfo(int startPC, int length, int nameIndex, int typeIndex, int index) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()intindex()Get the index of this variable into the local variable array for the method.intlength()Get the length of the live range of the variable.intGet the index into the constant pool of the name of the variable.intstartPC()Get the start PC of the live range of the variable.toString()Returns a string representation of the attribute.intGet the index into the constant pool of the type descriptor of the variable.
-
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
-
toString
-