Public Methods | |
InstructionHandle[] | getTargets () |
InstructionHandle[] | getTargets () |
Private Methods | |
TargetLostException (InstructionHandle[] t, String mesg) | |
TargetLostException (InstructionHandle[] t, String mesg) | |
Private Attributes | |
InstructionHandle[] | targets |
InstructionHandle[] | targets |
Making this an exception instead of a return value forces the user to handle these case explicitely in a try { ... } catch. The following code illustrates how this may be done:
... 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); } }
Definition at line 34 of file lib/jpf/de/fub/bytecode/generic/TargetLostException.java.
|
Definition at line 44 of file src/de/fub/bytecode/generic/TargetLostException.java. |
|
Definition at line 44 of file lib/jpf/de/fub/bytecode/generic/TargetLostException.java. |