@Override public void visitTypeInsn(final int opcode, final String type) { if (opcode == NEW) { InvokeInfo invokeInfo = new InvokeInfo(type, INIT, StringPool.EMPTY); for (InvokeAspect aspect : aspects) { InvokeReplacer ir = aspect.pointcut(invokeInfo); if (ir != null && !ir.isNone()) { newInvokeReplacer = ir; // new pointcut found, skip the new instruction and the following dup. // and then go to the invokespecial return; } } } super.visitTypeInsn(opcode, type); }
if (ir == null || ir.isNone()) {
@Override public void visitTypeInsn(final int opcode, final String type) { if (opcode == NEW) { InvokeInfo invokeInfo = new InvokeInfo(type, INIT, StringPool.EMPTY); for (InvokeAspect aspect : aspects) { InvokeReplacer ir = aspect.pointcut(invokeInfo); if (ir != null && !ir.isNone()) { newInvokeReplacer = ir; // new pointcut found, skip the new instruction and the following dup. // and then go to the invokespecial return; } } } super.visitTypeInsn(opcode, type); }
if (ir == null || ir.isNone()) {