public final class BranchHandle extends InstructionHandle
InstructionHandle,
Instruction,
InstructionListEMPTY_ARRAY, i_position| 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 maxOffset)
Called by InstructionList.setPositions when setting the position for every instruction.
|
void |
updateTarget(InstructionHandle oldIh,
InstructionHandle newIh)
Update target of instruction.
|
accept, addAttribute, addHandle, addTargeter, getAttribute, getAttributes, getInstruction, getNext, getPrev, getTargeters, hasTargeters, removeAllTargeters, removeAttribute, removeTargeter, swapInstruction, toString, toStringpublic int getPosition()
getPosition in class InstructionHandlepublic InstructionHandle getTarget()
public void setInstruction(Instruction i)
setInstruction in class InstructionHandlepublic void setTarget(InstructionHandle ih)
protected int updatePosition(int offset, int maxOffset)
InstructionHandleupdatePosition in class InstructionHandleoffset - additional offset caused by preceding (variable length) instructionsmaxOffset - the maximum offset that may be caused by these instructionspublic void updateTarget(InstructionHandle oldIh, InstructionHandle newIh)
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.