public final class BranchHandle extends InstructionHandle
InstructionHandle,
Instruction,
InstructionList,
Serialized Formpos| Modifier and Type | Method and Description |
|---|---|
int |
getPosition() |
InstructionHandle |
getTarget() |
void |
setInstruction(Instruction i)
Set new contents.
|
void |
setTarget(InstructionHandle ih)
Pass new target to instruction.
|
protected int |
updatePosition(int offset,
int max_offset)
Called by InstructionList.setPositions when setting the position for every instruction.
|
void |
updateTarget(InstructionHandle old_ih,
InstructionHandle new_ih)
Update target of instruction.
|
addTargeter, getInstruction, getNext, getPrev, getTargeters, getTargetersCopy, hasTargeters, removeAllTargeters, removeTargeter, toString, toStringpublic int getPosition()
getPosition in class InstructionHandleprotected int updatePosition(int offset,
int max_offset)
offset - additional offset caused by preceding (variable length) instructionsmax_offset - the maximum offset that may be caused by these instructionspublic void setTarget(InstructionHandle ih)
public void updateTarget(InstructionHandle old_ih, InstructionHandle new_ih)
public InstructionHandle getTarget()
public void setInstruction(Instruction i)
setInstruction in class InstructionHandle