Search in sources :

Example 1 with MultiBranchIntermediate

use of org.candle.decompiler.intermediate.code.MultiBranchIntermediate in project candle-decompiler by bradsdavis.

the class MethodIntermediateVisitor method handleSwitch.

public void handleSwitch() {
    Expression switchVal = context.getExpressions().pop();
    Switch switchExpression = new Switch(context.getCurrentInstruction(), switchVal);
    MultiBranchIntermediate mbi = new MultiBranchIntermediate(context.getCurrentInstruction(), switchExpression);
    context.pushIntermediateToInstruction(mbi);
}
Also used : Switch(org.candle.decompiler.intermediate.expression.Switch) TypedExpression(org.candle.decompiler.intermediate.expression.TypedExpression) Expression(org.candle.decompiler.intermediate.expression.Expression) MultiBranchIntermediate(org.candle.decompiler.intermediate.code.MultiBranchIntermediate)

Aggregations

MultiBranchIntermediate (org.candle.decompiler.intermediate.code.MultiBranchIntermediate)1 Expression (org.candle.decompiler.intermediate.expression.Expression)1 Switch (org.candle.decompiler.intermediate.expression.Switch)1 TypedExpression (org.candle.decompiler.intermediate.expression.TypedExpression)1