Search in sources :

Example 1 with InstructionTransversalListener

use of org.candle.decompiler.instruction.intermediate.InstructionTransversalListener in project candle-decompiler by bradsdavis.

the class InstructionToIntermediateEnhancer method process.

@Override
public void process() {
    GraphIterator<InstructionHandle, IntermediateEdge> iterator = new DepthFirstIterator<InstructionHandle, IntermediateEdge>(igc.getGraph());
    iterator.addTraversalListener(new InstructionTransversalListener(igc, intermediateContext));
    while (iterator.hasNext()) {
        iterator.next();
    }
}
Also used : DepthFirstIterator(org.jgrapht.traverse.DepthFirstIterator) InstructionTransversalListener(org.candle.decompiler.instruction.intermediate.InstructionTransversalListener) IntermediateEdge(org.candle.decompiler.intermediate.graph.edge.IntermediateEdge) InstructionHandle(org.apache.bcel.generic.InstructionHandle)

Aggregations

InstructionHandle (org.apache.bcel.generic.InstructionHandle)1 InstructionTransversalListener (org.candle.decompiler.instruction.intermediate.InstructionTransversalListener)1 IntermediateEdge (org.candle.decompiler.intermediate.graph.edge.IntermediateEdge)1 DepthFirstIterator (org.jgrapht.traverse.DepthFirstIterator)1