Search in sources :

Example 6 with Return

use of org.candle.decompiler.intermediate.expression.Return in project candle-decompiler by bradsdavis.

the class MethodIntermediateVisitor method visitRETURN.

public void visitRETURN(RETURN instruction) {
    Return ret = new Return(context.getCurrentInstruction());
    processReturn(ret);
}
Also used : Return(org.candle.decompiler.intermediate.expression.Return)

Example 7 with Return

use of org.candle.decompiler.intermediate.expression.Return in project candle-decompiler by bradsdavis.

the class MethodIntermediateVisitor method visitDRETURN.

public void visitDRETURN(DRETURN instruction) {
    Expression exp = context.getExpressions().pop();
    Return ret = new Return(context.getCurrentInstruction(), exp);
    processReturn(ret);
}
Also used : Return(org.candle.decompiler.intermediate.expression.Return) TypedExpression(org.candle.decompiler.intermediate.expression.TypedExpression) Expression(org.candle.decompiler.intermediate.expression.Expression)

Example 8 with Return

use of org.candle.decompiler.intermediate.expression.Return in project candle-decompiler by bradsdavis.

the class MethodIntermediateVisitor method visitFRETURN.

public void visitFRETURN(FRETURN instruction) {
    Expression exp = context.getExpressions().pop();
    Return ret = new Return(context.getCurrentInstruction(), exp);
    processReturn(ret);
}
Also used : Return(org.candle.decompiler.intermediate.expression.Return) TypedExpression(org.candle.decompiler.intermediate.expression.TypedExpression) Expression(org.candle.decompiler.intermediate.expression.Expression)

Aggregations

Return (org.candle.decompiler.intermediate.expression.Return)8 Expression (org.candle.decompiler.intermediate.expression.Expression)5 TypedExpression (org.candle.decompiler.intermediate.expression.TypedExpression)5 AbstractIntermediate (org.candle.decompiler.intermediate.code.AbstractIntermediate)2 Throw (org.candle.decompiler.intermediate.expression.Throw)2 GoToIntermediate (org.candle.decompiler.intermediate.code.GoToIntermediate)1 StatementIntermediate (org.candle.decompiler.intermediate.code.StatementIntermediate)1 IntermediateEdge (org.candle.decompiler.intermediate.graph.edge.IntermediateEdge)1 BreadthFirstIterator (org.jgrapht.traverse.BreadthFirstIterator)1