Search in sources :

Example 1 with SwitchCaseBlock

use of org.candle.decompiler.ast.swtch.SwitchCaseBlock in project candle-decompiler by bradsdavis.

the class BlockVisitor method visitCaseIntermediate.

@Override
public void visitCaseIntermediate(CaseIntermediate line) {
    SwitchCaseBlock switchCaseBlock = new SwitchCaseBlock(line);
    current.addChild(switchCaseBlock);
    current = switchCaseBlock;
    // now, visit the successor, if any.
    List<AbstractIntermediate> candidates = getUnseenSuccessors(line);
    if (candidates.size() > 0) {
        for (AbstractIntermediate candidate : candidates) {
            // move to the next.
            candidate.accept(this);
        }
    }
}
Also used : AbstractIntermediate(org.candle.decompiler.intermediate.code.AbstractIntermediate) SwitchCaseBlock(org.candle.decompiler.ast.swtch.SwitchCaseBlock)

Aggregations

SwitchCaseBlock (org.candle.decompiler.ast.swtch.SwitchCaseBlock)1 AbstractIntermediate (org.candle.decompiler.intermediate.code.AbstractIntermediate)1