use of org.candle.decompiler.intermediate.expression.ASTListener in project candle-decompiler by bradsdavis.
the class ExpressionEnhancer method visitStatementIntermediate.
@Override
public void visitStatementIntermediate(StatementIntermediate line) {
Expression exp = line.getExpression();
//ok, now we can visit the expression...
exp.visit(new ASTListener() {
@Override
public void accept(Expression e) {
if (e instanceof NewInstance) {
if (((NewInstance) e).getType() instanceof ObjectType) {
ObjectType obj = (ObjectType) ((NewInstance) e).getType();
if (StringUtils.equals("java.lang.StringBuilder", obj.getClassName())) {
System.out.println(obj.getClassName());
}
}
}
}
});
}
Aggregations