Methods Summary |
---|
protected void | addHandle()Handle adds itself to the list of resuable handles.
next = bh_list;
bh_list = this;
|
static final com.sun.org.apache.bcel.internal.generic.BranchHandle | getBranchHandle(com.sun.org.apache.bcel.internal.generic.BranchInstruction i)
// List of reusable handles
if(bh_list == null)
return new BranchHandle(i);
else {
BranchHandle bh = bh_list;
bh_list = (BranchHandle)bh.next;
bh.setInstruction(i);
return bh;
}
|
public int | getPosition()
return bi.position;
|
public com.sun.org.apache.bcel.internal.generic.InstructionHandle | getTarget()
return bi.getTarget();
|
public void | setInstruction(com.sun.org.apache.bcel.internal.generic.Instruction i)Set new contents. Old instruction is disposed and may not be used anymore.
super.setInstruction(i);
if(!(i instanceof BranchInstruction))
throw new ClassGenException("Assigning " + i +
" to branch handle which is not a branch instruction");
bi = (BranchInstruction)i;
|
void | setPosition(int pos)
i_position = bi.position = pos;
|
public void | setTarget(com.sun.org.apache.bcel.internal.generic.InstructionHandle ih)Pass new target to instruction.
bi.setTarget(ih);
|
protected int | updatePosition(int offset, int max_offset)
int x = bi.updatePosition(offset, max_offset);
i_position = bi.position;
return x;
|
public void | updateTarget(com.sun.org.apache.bcel.internal.generic.InstructionHandle old_ih, com.sun.org.apache.bcel.internal.generic.InstructionHandle new_ih)Update target of instruction.
bi.updateTarget(old_ih, new_ih);
|