Code, Updates: Andy 14Feb06 - Made unpacking of the data lazy, depending on someone actually asking for it.
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private boolean | |
| private LocalVariable[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | LocalVariableTable(int
Index in constant pool to `LocalVariableTable' name_index, int Content length in bytes length, LocalVariable[] Table of local variables local_variable_table, ConstantPool Array of constants constant_pool)
|
| pack-priv | LocalVariableTable(int
Index in constant pool name_index, int Content length in bytes length, DataInputStream Input stream file, ConstantPool Array of constants constant_pool)Construct object from file stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ClassVisitor
Visitor object v)Implements abstract org. Implements org. |
| public synchronized LocalVariableTable | |
| public final synchronized void | dump(DataOutputStream
Output file stream file)
Dump local variable table attribute to file stream in binary format.
|
| public final LocalVariable | |
| public final LocalVariable[] | |
| public final int | |
| public final synchronized void | |
| public final String | Returns: String representation.Overrides org. |
| private synchronized void |
| data | back to summary |
|---|---|
| private byte[] data | |
| isInPackedState | back to summary |
|---|---|
| private boolean isInPackedState | |
| localVariableTable | back to summary |
|---|---|
| private LocalVariable[] localVariableTable | |
| localVariableTableLength | back to summary |
|---|---|
| private int localVariableTableLength | |
| LocalVariableTable | back to summary |
|---|---|
| public LocalVariableTable(LocalVariableTable c) Initialize from another object. Note that both objects use the same references (shallow copy). Use copy() for a physical copy. | |
| LocalVariableTable | back to summary |
|---|---|
public LocalVariableTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool)
| |
| LocalVariableTable | back to summary |
|---|---|
| pack-priv LocalVariableTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException Construct object from file stream.
| |
| accept | back to summary |
|---|---|
| public void accept(ClassVisitor v) Implements abstract org. Implements org. Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
| |
| copyFromPackedState | back to summary |
|---|---|
| public synchronized LocalVariableTable copyFromPackedState() Returns copy of this attribute using same packed state. Used in unit tests. | |
| dump | back to summary |
|---|---|
| public final synchronized void dump(DataOutputStream file) throws IOException Overrides org. Dump local variable table attribute to file stream in binary format.
| |
| getLocalVariable | back to summary |
|---|---|
public final LocalVariable getLocalVariable(int index)
| |
| getLocalVariableTable | back to summary |
|---|---|
public final LocalVariable[] getLocalVariableTable()
| |
| getTableLength | back to summary |
|---|---|
public final int getTableLength()
| |
| setLocalVariableTable | back to summary |
|---|---|
| public final synchronized void setLocalVariableTable(LocalVariable[] local_variable_table) | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| unpack | back to summary |
|---|---|
| private synchronized void unpack() | |