org.apache.bcel.generic
Class BranchHandle
- java.io.Serializable
public final class BranchHandle
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:
- M. Dahm
InstructionHandle, Instruction, InstructionList, Serialized Form
accept, addAttribute, addHandle, addTargeter, getAttribute, getAttributes, getInstruction, getNext, getPosition, getPrev, getTargeters, hasTargeters, removeAllTargeters, removeAttribute, removeTargeter, setInstruction, swapInstruction, toString, toString, updatePosition |
addHandle
protected void addHandle()
Handle adds itself to the list of resuable handles.
- addHandle in interface InstructionHandle
setInstruction
public void setInstruction(Instruction i)
Set new contents. Old instruction is disposed and may not be used anymore.
- setInstruction in interface InstructionHandle
updatePosition
protected int updatePosition(int offset,
int max_offset)- updatePosition in interface InstructionHandle