public final class BranchHandle extends InstructionHandle
InstructionHandle,
Instruction,
InstructionList,
Serialized Formi_position| Modifier and Type | Method and Description |
|---|---|
protected void |
addHandle()
Handle adds itself to the list of resuable handles.
|
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.
|
accept, addAttribute, addTargeter, getAttribute, getAttributes, getInstruction, getNext, getPrev, getTargeters, hasTargeters, removeAllTargeters, removeAttribute, removeTargeter, swapInstruction, toString, toStringprotected void addHandle()
addHandle in class InstructionHandlepublic int getPosition()
getPosition in class InstructionHandleprotected int updatePosition(int offset,
int max_offset)
InstructionHandleupdatePosition in class InstructionHandleoffset - 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 InstructionHandleCopyright © 2018–2021 mhoffrogge. All rights reserved.