All Packages Class Hierarchy This Package Previous Next Index
Class de.fub.bytecode.generic.BranchHandle
java.lang.Object
|
+----de.fub.bytecode.generic.InstructionHandle
|
+----de.fub.bytecode.generic.BranchHandle
- public final class BranchHandle
- extends InstructionHandle
BranchHandle is returned by specialized InstructionList.append() whenever a
BranchInstruction is appended. This is useful when the target of this
instruction is not known at time of creation and must be set later
via setTarget().
- Version:
- $Id: BranchHandle.java,v 1.11 2000/02/23 09:51:54 dahm Exp $
- Author:
- M. Dahm
- See Also:
- InstructionHandle, Instruction, InstructionList
-
addHandle()
- Handle adds itself to the list of resuable handles.
-
getPosition()
-
-
getTarget()
-
-
setInstruction(Instruction)
-
Set new contents.
-
setTarget(InstructionHandle)
- Pass new target to instruction.
-
updatePosition(int, int)
- Called by InstructionList.setPositions when setting the position for every
instruction.
-
updateTarget(InstructionHandle, InstructionHandle)
- Update target of instruction.
addHandle
protected void addHandle()
- Handle adds itself to the list of resuable handles.
- Overrides:
- addHandle in class InstructionHandle
getPosition
public int getPosition()
- Overrides:
- getPosition in class InstructionHandle
updatePosition
protected int updatePosition(int offset,
int max_offset)
- Called by InstructionList.setPositions when setting the position for every
instruction.
- Overrides:
- updatePosition in class InstructionHandle
setTarget
public void setTarget(InstructionHandle ih)
- Pass new target to instruction.
updateTarget
public void updateTarget(InstructionHandle old_ih,
InstructionHandle new_ih)
- Update target of instruction.
getTarget
public InstructionHandle getTarget()
- Returns:
- target of instruction.
setInstruction
public void setInstruction(Instruction i)
- Set new contents. Old instruction is disposed and may not be used anymore.
- Overrides:
- setInstruction in class InstructionHandle
All Packages Class Hierarchy This Package Previous Next Index