Package net.sf.joafip.asm

Examples of net.sf.joafip.asm.MethodVisitor.visitFieldInsn()


      mv.visitVarInsn(ALOAD, 0);
      mv.visitTypeInsn(NEW, "java/util/LinkedList");
      mv.visitInsn(DUP);
      mv.visitMethodInsn(INVOKESPECIAL, "java/util/LinkedList", "<init>",
          "()V");
      mv.visitFieldInsn(PUTFIELD, "net/sf/joafip/asm/New", "list",
          "Ljava/util/List;");
      mv.visitInsn(RETURN);
      mv.visitMaxs(3, 1);
      mv.visitEnd();
    }
View Full Code Here


    {
      mv = cw.visitMethod(ACC_PUBLIC, "getList", "()Ljava/util/List;",
          "()Ljava/util/List<Ljava/lang/Integer;>;", null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD, "net/sf/joafip/asm/New", "list",
          "Ljava/util/List;");
      mv.visitInsn(ARETURN);
      mv.visitMaxs(1, 1);
      mv.visitEnd();
    }
View Full Code Here

          "net/sf/joafip/store/service/proxy/ProxyCallBack");
      mv.visitInsn(DUP);
      mv.visitMethodInsn(INVOKESPECIAL,
          "net/sf/joafip/store/service/proxy/ProxyCallBack",
          "<init>", "()V");
      mv.visitFieldInsn(PUTFIELD, "net/sf/joafip/asm/NewProxyCallBack",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackProxyDelegation;");
      mv.visitInsn(RETURN);
      mv.visitMaxs(3, 1);
      mv.visitEnd();
View Full Code Here

          "getProxyCallBack",
          "()Lnet/sf/joafip/store/service/proxy/IProxyCallBackProxyDelegation;",
          null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD, "net/sf/joafip/asm/NewProxyCallBack",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackProxyDelegation;");
      mv.visitInsn(ARETURN);
      mv.visitMaxs(1, 1);
      mv.visitEnd();
View Full Code Here

          "net/sf/joafip/store/service/proxy/StaticProxyCallBack",
          "intercept$JOAFIP$", "(Ljava/lang/Object;)V");

      mv.visitVarInsn(ALOAD, 1);
      mv.visitInsn(ICONST_0);
      mv.visitFieldInsn(PUTFIELD,
          "net/sf/joafip/asm/StaticProxyCallBackCall", "field", "I");
      mv.visitVarInsn(ALOAD, 1);
      mv.visitMethodInsn(INVOKESTATIC,
          "net/sf/joafip/store/service/proxy/StaticProxyCallBack",
          "forceLoad$JOAFIP$", "(Ljava/lang/Object;)V");
View Full Code Here

    methodVisitor.visitTypeInsn(NEW, PROXY_CALL_BACK);
    methodVisitor.visitInsn(DUP);
    methodVisitor.visitMethodInsn(INVOKESPECIAL, PROXY_CALL_BACK,
        INIT_METHOD_NAME, proxyCallBackConstructorDesc);

    methodVisitor.visitFieldInsn(
    /**/PUTFIELD,/* opcode */
        /**/classInternalName,/* owner */
        /**/PROXY_CALL_BACK_FIELD_NAME,/* name */
        /**/I_PROXY_CALL_BACK_DELEGATION_DESC);/* desc */

 
View Full Code Here

    /**/null);
    methodVisitor.visitCode();

    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitVarInsn(ALOAD, 1);
    methodVisitor.visitFieldInsn(
    /**/PUTFIELD,/* opcode */
        /**/classInternalName,/* owner */
        /**/PROXY_CALL_BACK_FIELD_NAME,/* name */
        /**/I_PROXY_CALL_BACK_DELEGATION_DESC);/* desc */

 
View Full Code Here

    /**/null,
    /**/null);
    methodVisitor.visitCode();

    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitFieldInsn(
    /**/GETFIELD,
    /**/classInternalName,
    /**/PROXY_CALL_BACK_FIELD_NAME,
    /**/I_PROXY_CALL_BACK_DELEGATION_DESC);
    methodVisitor.visitInsn(ARETURN);
 
View Full Code Here

    /**/null,
    /**/FORCE_LOAD_EXCEPTION);

    methodVisitor.visitCode();
    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitFieldInsn(
    /**/GETFIELD,
    /**/classInternalName,
    /**/PROXY_CALL_BACK_FIELD_NAME,
    /**/I_PROXY_CALL_BACK_DELEGATION_DESC);
    methodVisitor.visitMethodInsn(
 
View Full Code Here

    /**/UNLOAD_EXCEPTION);

    methodVisitor.visitCode();

    methodVisitor.visitVarInsn(ALOAD, 0);
    methodVisitor.visitFieldInsn(
    /**/GETFIELD,
    /**/classInternalName,
    /**/PROXY_CALL_BACK_FIELD_NAME,
    /**/I_PROXY_CALL_BACK_DELEGATION_DESC);
    methodVisitor.visitMethodInsn(
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.