InstructionHandle, Instruction, InstructionList
| Modifier and Type | Field and Description |
|---|---|
| private BranchInstruction |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static BranchHandle | |
| public int | |
| public InstructionHandle | |
| public void | setInstruction(final Instruction i)
Overrides org. |
| pack-priv void | setPosition(final int pos)
Overrides org. |
| public void | |
| protected int | updatePosition(final int
additional offset caused by preceding (variable length) instructions offset, final int the maximum offset that may be caused by these instructions maxOffset)Overrides org. |
| public void | updateTarget(final InstructionHandle oldIh, final InstructionHandle newIh)
Update target of instruction. |
| bi | back to summary |
|---|---|
| private BranchInstruction bi | |
| BranchHandle | back to summary |
|---|---|
| private BranchHandle(final BranchInstruction i) | |
| getBranchHandle | back to summary |
|---|---|
| pack-priv static BranchHandle getBranchHandle(final BranchInstruction i) Factory method. | |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides org.
| |
| getTarget | back to summary |
|---|---|
public InstructionHandle getTarget()
| |
| setInstruction | back to summary |
|---|---|
| public void setInstruction(final Instruction i) Overrides org. Sets new contents. Old instruction is disposed and may not be used anymore.
| |
| setPosition | back to summary |
|---|---|
| pack-priv void setPosition(final int pos) Overrides org. Doc from org. Sets the position, i.e., the byte code offset of the contained instruction.
| |
| setTarget | back to summary |
|---|---|
| public void setTarget(final InstructionHandle ih) Pass new target to instruction. | |
| updatePosition | back to summary |
|---|---|
| protected int updatePosition(final int offset, final int maxOffset) Overrides org. Doc from org. 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(final InstructionHandle oldIh, final InstructionHandle newIh) Update target of instruction. | |