org.apache.bcel.classfile
public abstract class AbstractLocalVariableTable extends Attribute
See Also: Code LocalVariable
Constructor Summary | |
---|---|
AbstractLocalVariableTable(AbstractLocalVariableTable c)
Initialize from another object. | |
AbstractLocalVariableTable(int name_index, int length, LocalVariable[] local_variable_table, ConstantPool constant_pool) |
Method Summary | |
---|---|
Attribute | copy(ConstantPool _constant_pool) |
void | dump(DataOutputStream file)
Dump local variable table attribute to file stream in binary format.
|
LocalVariable | getLocalVariable(int index) |
LocalVariable | getLocalVariable(int index, int pc) |
LocalVariable[] | getLocalVariableTable() |
int | getTableLength() |
void | setLocalVariableTable(LocalVariable[] local_variable_table) |
String | toString() |
Parameters: name_index Index in constant pool to `LocalVariableTable' length Content length in bytes local_variable_table Table of local variables constant_pool Array of constants
Returns: deep copy of this attribute
Parameters: file Output file stream
Throws: IOException
Deprecated: since 5.2 because multiple variables can share the same slot, use getLocalVariable(int index, int pc) instead.
Parameters: index the variable slot
Returns: first matching variable using index the first LocalVariable that matches the slot or null if not found
Parameters: index the variable slot pc the current pc that this variable is alive
Returns: matching variable using index when variable is used at supplied pc the LocalVariable that matches or null if not found
Returns: Array of local variables of method.
Returns: String representation.