public final class BranchHandle extends InstructionHandle
InstructionHandle
,
Instruction
,
InstructionList
EMPTY_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, toString
public int getPosition()
getPosition
in class InstructionHandle
public InstructionHandle getTarget()
public void setInstruction(Instruction i)
setInstruction
in class InstructionHandle
public void setTarget(InstructionHandle ih)
protected int updatePosition(int offset, int maxOffset)
InstructionHandle
updatePosition
in class InstructionHandle
offset
- 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–2024 The Apache Software Foundation. All rights reserved.