if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method();
if (seenStatic && hook == null) { getStaticHook(); } if (hook != null) { if (!seenStatic) { CodeVisitor v = outer.visitMethod(Constants.ACC_STATIC, Constants.SIG_STATIC.getName(), Constants.SIG_STATIC.getDescriptor(), null); v.visitInsn(Constants.RETURN); v.visitMaxs(0, 0);
    public void end_class() {        if (useHook && !TypeUtils.isInterface(access)) {            if (hook != null && !seenStatic) {                CodeEmitter e = begin_static();                e.return_value();                e.end_method();            }            if (seenStatic) {                getStaticHook(); // make sure hook is not null                hook.return_value();                hook.end_method();                ((ClassRecorder)rec.cv).generateMethod(STATIC_HOOK, raw);            }        }        raw.visitEnd();        cv = raw = null; // for safety    }