Package net.sf.joafip.asm

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


          "()Ljava/lang/Class;");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Class", "getName",
          "()Ljava/lang/String;");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/String;)Ljava/lang/StringBuilder;");
      mv.visitLdcInsn("@");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/String;)Ljava/lang/StringBuilder;");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Object", "hashCode",
          "()I");
View Full Code Here


      mv.visitInsn(LCMP);
      Label l0 = new Label();
      mv.visitJumpInsn(IFGE, l0);
      mv.visitTypeInsn(NEW, "java/lang/IllegalArgumentException");
      mv.visitInsn(DUP);
      mv.visitLdcInsn("timeout value is negative");
      mv.visitMethodInsn(INVOKESPECIAL,
          "java/lang/IllegalArgumentException", "<init>",
          "(Ljava/lang/String;)V");
      mv.visitInsn(ATHROW);
      mv.visitLabel(l0);
View Full Code Here

          Opcodes.LONG, Opcodes.INTEGER }, 0, new Object[] {});
      mv.visitVarInsn(ILOAD, 3);
      Label l1 = new Label();
      mv.visitJumpInsn(IFLT, l1);
      mv.visitVarInsn(ILOAD, 3);
      mv.visitLdcInsn(new Integer(999999));
      Label l2 = new Label();
      mv.visitJumpInsn(IF_ICMPLE, l2);
      mv.visitLabel(l1);
      mv.visitFrame(Opcodes.F_NEW, 3, new Object[] { "java/lang/Object",
          Opcodes.LONG, Opcodes.INTEGER }, 0, new Object[] {});
View Full Code Here

      mv.visitLabel(l1);
      mv.visitFrame(Opcodes.F_NEW, 3, new Object[] { "java/lang/Object",
          Opcodes.LONG, Opcodes.INTEGER }, 0, new Object[] {});
      mv.visitTypeInsn(NEW, "java/lang/IllegalArgumentException");
      mv.visitInsn(DUP);
      mv.visitLdcInsn("nanosecond timeout value out of range");
      mv.visitMethodInsn(INVOKESPECIAL,
          "java/lang/IllegalArgumentException", "<init>",
          "(Ljava/lang/String;)V");
      mv.visitInsn(ATHROW);
      mv.visitLabel(l2);
View Full Code Here

      mv.visitInsn(ATHROW);
      mv.visitLabel(l2);
      mv.visitFrame(Opcodes.F_NEW, 3, new Object[] { "java/lang/Object",
          Opcodes.LONG, Opcodes.INTEGER }, 0, new Object[] {});
      mv.visitVarInsn(ILOAD, 3);
      mv.visitLdcInsn(new Integer(500000));
      Label l3 = new Label();
      mv.visitJumpInsn(IF_ICMPGE, l3);
      mv.visitVarInsn(ILOAD, 3);
      Label l4 = new Label();
      mv.visitJumpInsn(IFEQ, l4);
View Full Code Here

      mv.visitJumpInsn(IFNULL, l0);
      mv.visitTypeInsn(NEW, "java/lang/IllegalStateException");
      mv.visitInsn(DUP);
      mv.visitTypeInsn(NEW, "java/lang/StringBuilder");
      mv.visitInsn(DUP);
      mv.visitLdcInsn("for ");
      mv.visitMethodInsn(INVOKESPECIAL, "java/lang/StringBuilder",
          "<init>", "(Ljava/lang/String;)V");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Object", "getClass",
          "()Ljava/lang/Class;");
View Full Code Here

      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/Object", "getClass",
          "()Ljava/lang/Class;");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/Object;)Ljava/lang/StringBuilder;");
      mv.visitLdcInsn("@");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "append", "(Ljava/lang/String;)Ljava/lang/StringBuilder;");
      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESTATIC, "java/lang/System",
          "identityHashCode", "(Ljava/lang/Object;)I");
View Full Code Here

      mv.visitVarInsn(ALOAD, 0);
      mv.visitMethodInsn(INVOKESTATIC, "java/lang/System",
          "identityHashCode", "(Ljava/lang/Object;)I");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
          "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",
View Full Code Here

      mv.visitVarInsn(ALOAD, 1);
      Label l1 = new Label();
      mv.visitJumpInsn(IFNONNULL, l1);
      mv.visitTypeInsn(NEW, "java/lang/IllegalArgumentException");
      mv.visitInsn(DUP);
      mv.visitLdcInsn("argument can not be null");
      mv.visitMethodInsn(INVOKESPECIAL,
          "java/lang/IllegalArgumentException", "<init>",
          "(Ljava/lang/String;)V");
      mv.visitInsn(ATHROW);
      mv.visitLabel(l1);
View Full Code Here

          "proxyCallBack",
          "Lnet/sf/joafip/store/service/proxy/IProxyCallBackToImplement;");
      mv.visitVarInsn(ALOAD, 0);
      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;");
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.