use of org.candle.decompiler.intermediate.expression.InstanceOf in project candle-decompiler by bradsdavis.
the class MethodIntermediateVisitor method visitINSTANCEOF.
public void visitINSTANCEOF(INSTANCEOF instruction) {
ConstantPoolGen cpg = context.getMethodGen().getConstantPool();
String type = instruction.getLoadClassType(cpg).getClassName();
// get the left, create the right
Expression left = context.getExpressions().pop();
Expression right = new Resolved(context.getCurrentInstruction(), Type.BOOLEAN, type);
InstanceOf instanceOf = new InstanceOf(context.getCurrentInstruction(), left, right);
context.getExpressions().push(instanceOf);
}
Aggregations