public class LocalVariableTableAttribute extends LocalVariableCommonAttribute
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_NAME
Name of the attribute as in the corresponding constant pool entry.
|
INITIAL_LENGTH, localVariableTable
SYSTEM_PROPERTY_SKIP_ATTRIBUTES
attributes
classFile, debug, SYSTEM_PROPERTY_DEBUG
Constructor and Description |
---|
LocalVariableTableAttribute() |
Modifier and Type | Method and Description |
---|---|
protected void |
debug(java.lang.String message)
Utility method for derived structures.
|
int |
getAttributeLength()
Get the length of this attribute as a number of bytes.
|
LocalVariableTableEntry[] |
getLocalVariableTable()
Get the list of local variable associations of the parent Code
structure as an array of LocalVariableTableEntry structures.
|
void |
read(java.io.DataInput in)
Read this structure from the given DataInput.
|
void |
setLocalVariableTable(LocalVariableTableEntry[] localVariableTable)
Set the list of local variable associations of the parent Code
structure as an array of LocalVariableTableEntry structures.
|
getLocalVariableEntries, setLocalVariableEntries, write
createOrSkip, getAttributeNameIndex, getInfo, getName, printAccessFlagsVerbose, setAttributeNameIndex, setInfo
findAttribute, getAttributes, getTotalAttributesLength, readAttributes, setAttributes, writeAttributes
getClassFile, getDebug, getLength, printAccessFlags, printAccessFlagsVerbose, printBytes, setClassFile, setDebug
public static final java.lang.String ATTRIBUTE_NAME
public LocalVariableTableEntry[] getLocalVariableTable()
public void setLocalVariableTable(LocalVariableTableEntry[] localVariableTable)
localVariableTable
- the indexpublic void read(java.io.DataInput in) throws InvalidByteCodeException, java.io.IOException
AbstractStructure
Excpects DataInput to be in JVM class file format and just before a structure of this kind. No look ahead parsing since the class file format is deterministic.
read
in class AttributeInfo
in
- the DataInput from which to readInvalidByteCodeException
- if the byte code is invalidjava.io.IOException
- if an exception occurs with the DataInputpublic int getAttributeLength()
AttributeInfo
getAttributeLength
in class AttributeInfo
protected void debug(java.lang.String message)
AbstractStructure
debug
in class AbstractStructure
message
- the debug message