use of org.candle.decompiler.intermediate.expression.NullLiteral in project candle-decompiler by bradsdavis.
the class MethodIntermediateVisitor method visitIFNONNULL.
@Override
public void visitIFNONNULL(IFNONNULL instruction) {
Expression left = context.getExpressions().pop();
Expression right = new NullLiteral(context.getCurrentInstruction());
MultiConditional conditional = new MultiConditional(context.getCurrentInstruction(), left, right, OperationType.NE);
BooleanBranchIntermediate line = new BooleanBranchIntermediate(context.getCurrentInstruction(), conditional);
context.pushIntermediateToInstruction(line);
}
use of org.candle.decompiler.intermediate.expression.NullLiteral in project candle-decompiler by bradsdavis.
the class MethodIntermediateVisitor method visitIFNULL.
@Override
public void visitIFNULL(IFNULL instruction) {
Expression left = context.getExpressions().pop();
Expression right = new NullLiteral(context.getCurrentInstruction());
MultiConditional conditional = new MultiConditional(context.getCurrentInstruction(), left, right, OperationType.EQ);
BooleanBranchIntermediate line = new BooleanBranchIntermediate(context.getCurrentInstruction(), conditional);
context.pushIntermediateToInstruction(line);
}
use of org.candle.decompiler.intermediate.expression.NullLiteral in project candle-decompiler by bradsdavis.
the class MethodIntermediateVisitor method visitACONST_NULL.
public void visitACONST_NULL(ACONST_NULL instruction) {
// load from constant pool.
NullLiteral cons = new NullLiteral(context.getCurrentInstruction());
context.getExpressions().push(cons);
}
Aggregations