LocalVariable, MethodGen
| Modifier and Type | Field and Description |
|---|---|
| private InstructionHandle | |
| private int | |
| private boolean | |
| private String | |
| private int | |
| private InstructionHandle | |
| private Type |
| Access | Constructor and Description |
|---|---|
| public | LocalVariableGen(final int
index of local variable index, final String its name name, final Type its type type, final InstructionHandle from where the instruction is valid (null means from the start) start, final InstructionHandle until where the instruction is valid (null means to the end) end)Generate a local variable that with index 'index'. |
| public | LocalVariableGen(final int
index of local variable index, final String its name name, final Type its type type, final InstructionHandle from where the instruction is valid (null means from the start) start, final InstructionHandle until where the instruction is valid (null means to the end) end, final int index of local variable prior to any changes to index origIndex)Generates a local variable that with index 'index'. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | Returns: true, if ih is target of this variableImplements org. |
| pack-priv void | |
| public boolean | equals(final Object
the reference object with which to compare. o)Overrides java. |
| public InstructionHandle | |
| public int | |
| public boolean | |
| public LocalVariable | getLocalVariable(final ConstantPoolGen
constant pool cp)
Deprecated
as a consequence of
Gets LocalVariable object.
LocalVariable being deprecated.
|
| public String | |
| public int | |
| public InstructionHandle | |
| public Type | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void | updateTarget(final InstructionHandle
old target, either start or end oldIh, final InstructionHandle new target newIh)Implements org. |
| end | back to summary |
|---|---|
| private InstructionHandle end | |
| index | back to summary |
|---|---|
| private int index | |
| liveToEnd | back to summary |
|---|---|
| private boolean liveToEnd | |
| name | back to summary |
|---|---|
| private String name | |
| origIndex | back to summary |
|---|---|
| private int origIndex | |
| start | back to summary |
|---|---|
| private InstructionHandle start | |
| type | back to summary |
|---|---|
| private Type type | |
| LocalVariableGen | back to summary |
|---|---|
| public LocalVariableGen(final int index, final String name, final Type type, final InstructionHandle start, final InstructionHandle end) Generate a local variable that with index 'index'. Note that double and long variables need two indexs. Index indices have to be provided by the user.
| |
| LocalVariableGen | back to summary |
|---|---|
| public LocalVariableGen(final int index, final String name, final Type type, final InstructionHandle start, final InstructionHandle end, final int origIndex) Generates a local variable that with index 'index'. Note that double and long variables need two indexs. Index indices have to be provided by the user.
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by | |
| containsTarget | back to summary |
|---|---|
| public boolean containsTarget(final InstructionHandle ih) Implements org. Doc from org. Checks whether this targeter targets the specified instruction handle.
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() Clear the references from and to this variable when it's removed. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object o) Overrides java. We consider to local variables to be equal, if the use the same index and are valid in the same range.
| |
| getEnd | back to summary |
|---|---|
| public InstructionHandle getEnd() | |
| getIndex | back to summary |
|---|---|
| public int getIndex() | |
| getLiveToEnd | back to summary |
|---|---|
| public boolean getLiveToEnd() | |
| getLocalVariable | back to summary |
|---|---|
| public LocalVariable getLocalVariable(final ConstantPoolGen cp)
Deprecated as a consequence of Gets LocalVariable object. This relies on that the instruction list has already been dumped to byte code or that the 'setPositions' methods has been called for the instruction list. Note that due to the conversion from byte code offset to InstructionHandle, it is impossible to tell the difference between a live range that ends BEFORE the last insturction of the method or a live range that ends AFTER the last instruction of the method. Hence the liveToEnd flag to differentiate between these two cases.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| getOrigIndex | back to summary |
|---|---|
| public int getOrigIndex() | |
| getStart | back to summary |
|---|---|
| public InstructionHandle getStart() | |
| getType | back to summary |
|---|---|
| public Type getType() Implements org.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setEnd | back to summary |
|---|---|
| public void setEnd(final InstructionHandle end) | |
| setIndex | back to summary |
|---|---|
| public void setIndex(final int index) | |
| setLiveToEnd | back to summary |
|---|---|
| public void setLiveToEnd(final boolean liveToEnd) | |
| setName | back to summary |
|---|---|
| public void setName(final String name) Implements org.
| |
| setStart | back to summary |
|---|---|
| public void setStart(final InstructionHandle start) | |
| setType | back to summary |
|---|---|
| public void setType(final Type type) Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| updateTarget | back to summary |
|---|---|
| public void updateTarget(final InstructionHandle oldIh, final InstructionHandle newIh) Implements org. Doc from org. Replaces the target of this targeter from this old handle to the new handle.
| |