Search in sources :

Example 1 with FinallyBlock

use of org.candle.decompiler.ast.tcf.FinallyBlock in project candle-decompiler by bradsdavis.

the class BlockVisitor method visitFinallyIntermediate.

@Override
public void visitFinallyIntermediate(FinallyIntermediate line) {
    if (seen.contains(line)) {
        // do nothing.
        return;
    } else {
        seen.add(line);
    }
    FinallyBlock finallyBlock = new FinallyBlock(line);
    current.addChild(finallyBlock);
    this.current = finallyBlock;
    List<AbstractIntermediate> successors = getUnseenSuccessors(line);
    for (AbstractIntermediate successor : successors) {
        successor.accept(this);
    }
    if (this.current == finallyBlock) {
        moveUp();
    }
}
Also used : AbstractIntermediate(org.candle.decompiler.intermediate.code.AbstractIntermediate) FinallyBlock(org.candle.decompiler.ast.tcf.FinallyBlock)

Aggregations

FinallyBlock (org.candle.decompiler.ast.tcf.FinallyBlock)1 AbstractIntermediate (org.candle.decompiler.intermediate.code.AbstractIntermediate)1