Package EDU.purdue.cs.bloat.reflect
Class LocalDebugInfo
- java.lang.Object
-
- EDU.purdue.cs.bloat.reflect.LocalDebugInfo
-
public class LocalDebugInfo extends java.lang.ObjectLocalDebugInfo 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.Objectclone()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.intnameIndex()Get the index into the constant pool of the name of the variable.intstartPC()Get the start PC of the live range of the variable.java.lang.StringtoString()Returns a string representation of the attribute.inttypeIndex()Get the index into the constant pool of the type descriptor of the variable.
-
-
-
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:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns a string representation of the attribute.- Overrides:
toStringin classjava.lang.Object
-
-