use of org.candle.decompiler.intermediate.expression.Expression 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());
}
}
}
}
});
}
use of org.candle.decompiler.intermediate.expression.Expression in project candle-decompiler by bradsdavis.
the class StackClonePointListener method setup.
public void setup(EdgeTraversalEvent<InstructionHandle, IntermediateEdge> e) {
switchStack((InstructionHandle) e.getEdge().getTarget());
if (e.getEdge().getType() == EdgeType.EXCEPTION) {
Expression exExp = (Expression) e.getEdge().getAttributes().get(ExceptionEdgeEnhancer.EXCEPTION_STACK_KEY);
ic.getExpressions().add(exExp);
}
}
Aggregations