protected TryIntermediate matchTryBlock(InstructionHandle min, InstructionHandle max) {
LinkedList<TryIntermediate> matches = new LinkedList<TryIntermediate>();
//find the try block...
for(AbstractIntermediate ai : igc.getGraph().vertexSet()) {
if(ai instanceof TryIntermediate) {
TryIntermediate tryIntermediate = ((TryIntermediate) ai);
LOG.debug("Finally: "+tryIntermediate+ " , "+tryIntermediate.getInstruction().getPosition()+" , "+tryIntermediate.getBlockRange().getStart());
if(tryIntermediate.getBlockRange().getStart().getPosition() == min.getPosition()) {
//only add where max > try's max range...
if(tryIntermediate.getBlockRange().getEnd().getPosition() < max.getPosition()) {
matches.add(tryIntermediate);
}
}
}
}