use of org.candle.decompiler.intermediate.expression.Cast in project candle-decompiler by bradsdavis.
the class MethodIntermediateVisitor method visitConversionInstruction.
public void visitConversionInstruction(ConversionInstruction instruction) {
ConstantPoolGen cpg = context.getMethodGen().getConstantPool();
Expression right = context.getExpressions().pop();
Type type = instruction.getType(cpg);
//now see what type it is.
LOG.debug("To Type: " + type);
Resolved resolve = new Resolved(context.getCurrentInstruction(), type, type.toString());
Cast cast = new Cast(context.getCurrentInstruction(), resolve, right);
context.getExpressions().push(cast);
}
Aggregations