org.apache.bcel.generic
public class LocalVariableGen extends Object implements InstructionTargeter, NamedAndTyped, Cloneable, Serializable
Version: $Id: LocalVariableGen.java 152815 2002-07-11 19:39:05Z mdahm $
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() |
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: il instruction list (byte code) which this variable belongs to cp constant pool
Parameters: old_ih old target, either start or end new_ih new target