Class LocalVariableTable
java.lang.Object
EDU.purdue.cs.bloat.file.Attribute
EDU.purdue.cs.bloat.file.LocalVariableTable
LocalVariableTable represents debugging information that may be used by a
debugger to determine the value of a given local variable during program
execution. It is essentially an array of reflect.LocalDebugInfo.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intlength()Get the length of the attribute.locals()Get the local variable debug info for the code.voidsetLocals(LocalDebugInfo[] locals) Set the local variable debug info for the code.toString()Returns a string representation of the attribute.voidWrite the attribute to a data stream.
-
Constructor Details
-
LocalVariableTable
Constructor. Create an attribute from a data stream.- Parameters:
in- The data stream of the class file.index- The index into the constant pool of the name of the attribute.len- The length of the attribute, excluding the header.- Throws:
IOException- If an error occurs while reading.
-
-
Method Details
-
locals
Get the local variable debug info for the code.- Returns:
- The local variable debug info for the code.
-
setLocals
Set the local variable debug info for the code.- Parameters:
locals- The local variable debug info for the code.
-
length
-
toString
-
writeData
Write the attribute to a data stream.- Specified by:
writeDatain classAttribute- Parameters:
out- The data stream of the class file.- Throws:
IOException- If an error occurs while writing.
-
clone
-