org.apache.bcel.generic
public class LocalVariableGen extends Object implements InstructionTargeter, NamedAndTyped, Cloneable, Serializable
See Also: LocalVariable MethodGen
Constructor Summary | |
---|---|
LocalVariableGen(int index, String name, Type type, InstructionHandle start, InstructionHandle end)
Generate a local variable that with index `index'. |
Method Summary | |
---|---|
Object | clone() |
boolean | containsTarget(InstructionHandle ih) |
boolean | equals(Object o)
We consider to local variables to be equal, if the use the same index and
are valid in the same range. |
InstructionHandle | getEnd() |
int | getIndex() |
LocalVariable | getLocalVariable(ConstantPoolGen cp)
Get LocalVariable object.
|
String | getName() |
InstructionHandle | getStart() |
Type | getType() |
int | hashCode() |
void | setEnd(InstructionHandle end) |
void | setIndex(int index) |
void | setName(String name) |
void | setStart(InstructionHandle start) |
void | setType(Type type) |
String | toString() |
void | updateTarget(InstructionHandle old_ih, InstructionHandle new_ih) |
Parameters: index index of local variable name its name type its type start from where the instruction is valid (null means from the start) end until where the instruction is valid (null means to the end)
Returns: true, if ih is target of this variable
Parameters: cp constant pool
Returns: a hash code value for the object.
Parameters: old_ih old target, either start or end new_ih new target