org.apache.bcel.classfile
public final class LocalVariable extends Object implements Constants, Cloneable, Node, Serializable
Version: $Id: LocalVariable.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: LocalVariableTable
| Field Summary | |
|---|---|
| ConstantPool | constant_pool |
| int | index |
| int | length |
| int | name_index |
| int | signature_index |
| int | start_pc |
| Constructor Summary | |
|---|---|
| LocalVariable(LocalVariable c)
Initialize from another object. | |
| LocalVariable(DataInputStream file, ConstantPool constant_pool)
Construct object from file stream. | |
| LocalVariable(int start_pc, int length, int name_index, int signature_index, int index, ConstantPool constant_pool) | |
| Method Summary | |
|---|---|
| void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
| LocalVariable | copy() |
| void | dump(DataOutputStream file)
Dump local variable to file stream in binary format.
|
| ConstantPool | getConstantPool() |
| int | getIndex() |
| int | getLength() |
| String | getName() |
| int | getNameIndex() |
| String | getSignature() |
| int | getSignatureIndex() |
| int | getStartPC() |
| void | setConstantPool(ConstantPool constant_pool) |
| void | setIndex(int index) |
| void | setLength(int length) |
| void | setNameIndex(int name_index) |
| void | setSignatureIndex(int signature_index) |
| void | setStartPC(int start_pc) |
| String | toString() |
Parameters: file Input stream
Throws: IOException
Parameters: start_pc Range in which the variable length ... is valid name_index Index in constant pool of variable name signature_index Index of variable's signature index Variable is `index'th local variable on the method's frame constant_pool Array of constants
Parameters: v Visitor object
Returns: deep copy of this object
Parameters: file Output file stream
Throws: IOException
Returns: Constant pool used by this object.
Returns: index of register where variable is stored
Returns: Variable is valid within getStartPC() .. getStartPC()+getLength()
Returns: Variable name.
Returns: Index in constant pool of variable name.
Returns: Signature.
Returns: Index in constant pool of variable signature.
Returns: Start of range where he variable is valid
Parameters: constant_pool Constant pool to be used for this object.
Parameters: index the index in the local variable table of this variable
Parameters: length the length of this local variable
Parameters: name_index the index into the constant pool for the name of this variable
Parameters: signature_index the index into the constant pool for the signature of this variable
Parameters: start_pc Specify range where the local variable is valid.
Returns: string representation.