InstructionList
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected InstructionHandle | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true, if ih is target of this instructionImplements org. |
| pack-priv void | dispose()
Overrides org. |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides org. |
| public final int | Returns: target offset in byte codeOverrides org. |
| public InstructionHandle | |
| protected int | |
| public Type | |
| public int | hashCode()
Overrides org. |
| public boolean | |
| pack-priv static final void | notifyTarget(InstructionHandle oldHandle, InstructionHandle newHandle, InstructionTargeter t)
Used by BranchInstruction, LocalVariableGen, CodeExceptionGen |
| public InstructionHandle | Returns: an InstructionHandle to the "next" instruction that will be executed when RETurned from a subroutine.Returns an InstructionHandle to the physical successor of this JsrInstruction. |
| public void | |
| public String | Returns: mnemonic for instructionlong/short format switch verbose)Overrides org. |
| protected int | Returns: additional offset caused by possible change of this instruction's lengthadditional offset caused by preceding (variable length) instructions offset, int the maximum offset that may be caused by these instructions max_offset)Called by InstructionList.setPositions when setting the position for every instruction. |
| public void | updateTarget(InstructionHandle
old target oldHandle, InstructionHandle new target newHandle)Implements org. |
| positionOfThisInstruction | back to summary |
|---|---|
| protected int positionOfThisInstruction | |
| targetIndex | back to summary |
|---|---|
| protected int targetIndex | |
| targetInstruction | back to summary |
|---|---|
| protected InstructionHandle targetInstruction | |
| UNSET | back to summary |
|---|---|
| private static final int UNSET | |
| InstructionBranch | back to summary |
|---|---|
| public InstructionBranch(short opcode, InstructionHandle target) | |
| InstructionBranch | back to summary |
|---|---|
| public InstructionBranch(short opcode, int index) | |
| InstructionBranch | back to summary |
|---|---|
| public InstructionBranch(short opcode) | |
| containsTarget | back to summary |
|---|---|
| public boolean containsTarget(InstructionHandle ih) Implements org.
| |
| dispose | back to summary |
|---|---|
| pack-priv void dispose() Overrides org. Inform target that it's not targeted anymore. | |
| dump | back to summary |
|---|---|
| public void dump(DataOutputStream out) throws IOException | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides org. Only equal if they are the same branch instruction - otherwise too risky as the targets may only temporarily be pointing at the same destination.
| |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Overrides org.
| |
| getTarget | back to summary |
|---|---|
public InstructionHandle getTarget()
| |
| getTargetOffset | back to summary |
|---|---|
| protected int getTargetOffset() | |
| getType | back to summary |
|---|---|
| public Type getType(ConstantPool cp) Overrides org. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. 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
| |
| isIfInstruction | back to summary |
|---|---|
| public boolean isIfInstruction() | |
| notifyTarget | back to summary |
|---|---|
| pack-priv static final void notifyTarget(InstructionHandle oldHandle, InstructionHandle newHandle, InstructionTargeter t) Used by BranchInstruction, LocalVariableGen, CodeExceptionGen | |
| physicalSuccessor | back to summary |
|---|---|
| public InstructionHandle physicalSuccessor() Returns an InstructionHandle to the physical successor of this JsrInstruction. For this method to work, this JsrInstruction object must not be shared between multiple InstructionHandle objects! Formally, there must not be InstructionHandle objects i, j where i != j and i.getInstruction() == this == j.getInstruction().
| |
| setTarget | back to summary |
|---|---|
| public void setTarget(InstructionHandle target) Set branch target
| |
| toString | back to summary |
|---|---|
| public String toString(boolean verbose) Overrides org. Long output format:
| |
| updatePosition | back to summary |
|---|---|
| protected int updatePosition(int offset, int max_offset) Called by InstructionList.setPositions when setting the position for every instruction. In the presence of variable length instructions `setPositions' performs multiple passes over the instruction list to calculate the correct (byte) positions and offsets by calling this function.
| |
| updateTarget | back to summary |
|---|---|
| public void updateTarget(InstructionHandle oldHandle, InstructionHandle newHandle) Implements org. Update the target destination for this instruction. If an oldHandle is provided it is checked to verify that is where the target currently points to before changing it.
| |