Package net.sf.joafip.asm

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


      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitFieldInsn(GETSTATIC,
          "net/sf/joafip/store/service/proxy/NullProxyCallBack",
          "INSTANCE",
          "Lnet/sf/joafip/store/service/proxy/NullProxyCallBack;");
      Label l0 = new Label();
      mv.visitJumpInsn(IF_ACMPEQ, l0);
View Full Code Here


          "INSTANCE",
          "Lnet/sf/joafip/store/service/proxy/NullProxyCallBack;");
      Label l0 = new Label();
      mv.visitJumpInsn(IF_ACMPEQ, l0);
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitJumpInsn(IFNULL, l0);
      mv.visitTypeInsn(NEW, "java/lang/IllegalStateException");
View Full Code Here

          "append", "(I)Ljava/lang/StringBuilder;");
      mv.visitLdcInsn(" proxy call back already set to ");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/String;)Ljava/lang/StringBuilder;");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/Object;)Ljava/lang/StringBuilder;");
View Full Code Here

      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/Object;)Ljava/lang/StringBuilder;");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "toString", "()Ljava/lang/String;");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "setProxyCallBackTrace", "Ljava/lang/Exception;");
      mv.visitMethodInsn(INVOKESPECIAL,
          "java/lang/IllegalStateException", "<init>",
          "(Ljava/lang/String;Ljava/lang/Throwable;)V");
View Full Code Here

      mv.visitInsn(ATHROW);
      mv.visitLabel(l1);
      mv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);
      mv.visitVarInsn(ALOAD, 0);
      mv.visitVarInsn(ALOAD, 1);
      mv.visitFieldInsn(PUTFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitTypeInsn(NEW, "java/lang/Exception");
View Full Code Here

      mv.visitTypeInsn(NEW, "java/lang/Exception");
      mv.visitInsn(DUP);
      mv.visitLdcInsn("setted proxy call back trace");
      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/Exception", "<init>",
          "(Ljava/lang/String;)V");
      mv.visitFieldInsn(PUTFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "setProxyCallBackTrace", "Ljava/lang/Exception;");
      mv.visitInsn(RETURN);
      mv.visitMaxs(5, 2);
      mv.visitEnd();
View Full Code Here

          "()V",
          null,
          new String[] { "net/sf/joafip/store/service/objectio/ObjectIOException" });
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitMethodInsn(
          INVOKEINTERFACE,
View Full Code Here

    {
      mv = cw.visitMethod(ACC_PUBLIC, "setLoading$JOAFIP$", "(Z)V", null,
          null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitVarInsn(ILOAD, 1);
      mv.visitMethodInsn(
View Full Code Here

    {
      mv = cw.visitMethod(ACC_PUBLIC, "intercept$JOAFIP$", "()V", null,
          null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitMethodInsn(
          INVOKEINTERFACE,
View Full Code Here

    {
      mv = cw.visitMethod(ACC_PUBLIC, "methodEnd$JOAFIP$", "()V", null,
          null);
      mv.visitCode();
      mv.visitVarInsn(ALOAD, 0);
      mv.visitFieldInsn(GETFIELD,
          "net/sf/joafip/store/service/proxy/JoafipObject",
          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitMethodInsn(
          INVOKEINTERFACE,
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.