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);
}
}
InstructionHandle,
InstructionList,
InstructionTargeter,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
InstructionHandle[] |
getTargets() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InstructionHandle[] getTargets()
Copyright © 2018–2021 mhoffrogge. All rights reserved.