Package net.sf.joafip.asm

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


          new String[] { "net/sf/joafip/store/service/proxy/ProxyException" });
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>",
          "()V");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitTypeInsn(NEW,
          "net/sf/joafip/store/service/proxy/ProxyCallBack");
      mv.visitInsn(DUP);
      mv.visitMethodInsn(INVOKESPECIAL,
          "net/sf/joafip/store/service/proxy/ProxyCallBack",
View Full Code Here


          ACC_PUBLIC,
          "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);
View Full Code Here

      fv.visitEnd();
    }
    {
      mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>",
          "()V");
      mv.visitInsn(RETURN);
      mv.visitMaxs(1, 1);
      mv.visitEnd();
View Full Code Here

      mv.visitTypeInsn(NEW, "net/sf/joafip/asm/StaticProxyCallBackCall");
      mv.visitInsn(DUP);
      mv.visitMethodInsn(INVOKESPECIAL,
          "net/sf/joafip/asm/StaticProxyCallBackCall", "<init>",
          "()V");
      mv.visitVarInsn(ASTORE, 1);

      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESTATIC,
          "net/sf/joafip/store/service/proxy/StaticProxyCallBack",
          "intercept$JOAFIP$", "(Ljava/lang/Object;)V");
View Full Code Here

      mv.visitMethodInsn(INVOKESPECIAL,
          "net/sf/joafip/asm/StaticProxyCallBackCall", "<init>",
          "()V");
      mv.visitVarInsn(ASTORE, 1);

      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESTATIC,
          "net/sf/joafip/store/service/proxy/StaticProxyCallBack",
          "intercept$JOAFIP$", "(Ljava/lang/Object;)V");

      mv.visitVarInsn(ALOAD, 1);
View Full Code Here

      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESTATIC,
          "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,
View Full Code Here

      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");

      mv.visitVarInsn(ALOAD, 0);
View Full Code Here

      mv.visitVarInsn(ALOAD, 1);
      mv.visitMethodInsn(INVOKESTATIC,
          "net/sf/joafip/store/service/proxy/StaticProxyCallBack",
          "forceLoad$JOAFIP$", "(Ljava/lang/Object;)V");

      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESTATIC,
          "net/sf/joafip/store/service/proxy/StaticProxyCallBack",
          "methodEnd$JOAFIP$", "(Ljava/lang/Object;)V");

      mv.visitInsn(RETURN);
View Full Code Here

        "java/lang/Object", null);

    {
      mv = cw.visitMethod(ACC_PUBLIC, "<init>", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Object", "<init>",
          "()V");
      mv.visitInsn(RETURN);
      mv.visitMaxs(1, 1);
      mv.visitEnd();
View Full Code Here

      mv.visitEnd();
    }
    {
      mv = cw.visitMethod(ACC_PUBLIC, "method", "()V", null, null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitLdcInsn("hello");
      mv.visitLdcInsn(Type
          .getType("Lnet/sf/joafip/store/service/bytecode/ToPersist;"));
      mv.visitMethodInsn(INVOKESPECIAL, "net/sf/joafip/asm/Ldc", "x",
          "(Ljava/lang/String;Ljava/lang/Class;)V");
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.