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); } }
Version: $Id: TargetLostException.java 386056 2006-03-15 11:31:56Z tcurdt $
See Also: InstructionHandle InstructionList InstructionTargeter
Field Summary | |
---|---|
InstructionHandle[] | targets |
Constructor Summary | |
---|---|
TargetLostException(InstructionHandle[] t, String mesg) |
Method Summary | |
---|---|
InstructionHandle[] | getTargets() |
Returns: list of instructions still being targeted.