use of org.candle.decompiler.intermediate.code.CaseIntermediateComparator in project candle-decompiler by bradsdavis.
the class IntermediateGraphContext method getCases.
public List<CaseIntermediate> getCases(SwitchIntermediate si) {
List<AbstractIntermediate> intermediate = Graphs.successorListOf(graph, si);
List<CaseIntermediate> switchCases = new LinkedList<CaseIntermediate>();
for (AbstractIntermediate i : intermediate) {
if (i instanceof CaseIntermediate) {
switchCases.add((CaseIntermediate) i);
}
}
Collections.sort(switchCases, new CaseIntermediateComparator());
return switchCases;
}
Aggregations