@Override public void visitCode() { AsmUtil.PUSH(mv, fullname_hash); mv.visitLdcInsn(fullname); mv.visitMethodInsn(Opcodes.INVOKESTATIC, TRACEMAIN, START_METHOD, START_SIGNATURE, false); statIdx = newLocal(Type.getType(Object.class)); mv.visitVarInsn(Opcodes.ASTORE, statIdx); mv.visitLabel(startFinally); mv.visitCode(); }
@Override public void visitCode() { AsmUtil.PUSH(mv, methodName); boolean flag = false; int sidx = isStatic ? 0 : 1; for (int i = 0; i < paramTypes.length; i++) { Type tp = paramTypes[i]; if ("java/lang/String".equals(tp.getInternalName())) { mv.visitVarInsn(Opcodes.ALOAD, sidx); flag = true; break; } sidx += tp.getSize(); } if (flag == false) { AsmUtil.PUSH(mv, ""); } mv.visitMethodInsn(Opcodes.INVOKESTATIC, CLASS, METHOD, SIGNATURE, false); super.visitCode(); }