public class LocalVariableTable extends Attribute
LocalDebugInfo| Constructor and Description |
|---|
LocalVariableTable(java.io.DataInputStream in,
int index,
int len)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
length()
Get the length of the attribute.
|
LocalDebugInfo[] |
locals()
Get the local variable debug info for the code.
|
void |
setLocals(LocalDebugInfo[] locals)
Set the local variable debug info for the code.
|
java.lang.String |
toString()
Returns a string representation of the attribute.
|
void |
writeData(java.io.DataOutputStream out)
Write the attribute to a data stream.
|
public LocalVariableTable(java.io.DataInputStream in,
int index,
int len)
throws java.io.IOException
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.java.io.IOException - If an error occurs while reading.public LocalDebugInfo[] locals()
public void setLocals(LocalDebugInfo[] locals)
locals - The local variable debug info for the code.public int length()
public java.lang.String toString()
Attributepublic void writeData(java.io.DataOutputStream out)
throws java.io.IOException