org.apache.bcel.generic
public final class TargetLostException extends Exception
...
try {
il.delete(start_ih, end_ih);
} catch(TargetLostException e) {
InstructionHandle[] targets = e.getTargets();
for(int i=0; i < targets.length; i++) {
InstructionTargeter[] targeters = targets[i].getTargeters();
for(int j=0; j < targeters.length; j++)
targeters[j].updateTarget(targets[i], new_target);
}
}
See Also: InstructionHandle InstructionList InstructionTargeter
| Method Summary | |
|---|---|
| InstructionHandle[] | getTargets() |
Returns: list of instructions still being targeted.