use of org.candle.decompiler.instruction.InstructionRange in project candle-decompiler by bradsdavis.
the class InstructionTryCatch method process.
public void process() {
Map<InstructionRange, List<CodeExceptionGen>> tryRangeGen = new HashMap<InstructionRange, List<CodeExceptionGen>>();
//create try statements...
for (CodeExceptionGen ceg : exceptions) {
InstructionHandle min = (ceg.getStartPC());
InstructionHandle max = (ceg.getEndPC());
InstructionRange tryRange = new InstructionRange();
tryRange.setStart(min);
tryRange.setEnd(max);
//SKIP THE FINALLY
if (ceg.getCatchType() == null) {
continue;
}
if (!tryRangeGen.containsKey(tryRange)) {
tryRangeGen.put(tryRange, new LinkedList<CodeExceptionGen>());
}
tryRangeGen.get(tryRange).add(ceg);
}
}
Aggregations