Package net.sf.joafip.asm

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


    {
      mv = cw.visitMethod(ACC_PUBLIC, "equals", "(Ljava/lang/Object;)Z",
          null, null);
      mv.visitCode();
      mv.visitFrame(Opcodes.F_NEW, 0, new Object[] {}, 0, new Object[] {});
      mv.visitVarInsn(ALOAD, 0);
      mv.visitVarInsn(ALOAD, 1);
      Label l0 = new Label();
      mv.visitJumpInsn(IF_ACMPNE, l0);
      mv.visitInsn(ICONST_1);
      Label l1 = new Label();
View Full Code Here


      mv = cw.visitMethod(ACC_PUBLIC, "equals", "(Ljava/lang/Object;)Z",
          null, null);
      mv.visitCode();
      mv.visitFrame(Opcodes.F_NEW, 0, new Object[] {}, 0, new Object[] {});
      mv.visitVarInsn(ALOAD, 0);
      mv.visitVarInsn(ALOAD, 1);
      Label l0 = new Label();
      mv.visitJumpInsn(IF_ACMPNE, l0);
      mv.visitInsn(ICONST_1);
      Label l1 = new Label();
      mv.visitJumpInsn(GOTO, l1);
View Full Code Here

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

      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");
      mv.visitMethodInsn(INVOKESTATIC, "java/lang/Integer",
          "toHexString", "(I)Ljava/lang/String;");
      mv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/StringBuilder",
View Full Code Here

    {
      mv = cw.visitMethod(ACC_PUBLIC + ACC_FINAL, "wait", "(JI)V", null,
          new String[] { "java/lang/InterruptedException" });
      mv.visitCode();
      mv.visitFrame(Opcodes.F_NEW, 0, new Object[] {}, 0, new Object[] {});
      mv.visitVarInsn(LLOAD, 1);
      mv.visitInsn(LCONST_0);
      mv.visitInsn(LCMP);
      Label l0 = new Label();
      mv.visitJumpInsn(IFGE, l0);
      mv.visitTypeInsn(NEW, "java/lang/IllegalArgumentException");
View Full Code Here

          "(Ljava/lang/String;)V");
      mv.visitInsn(ATHROW);
      mv.visitLabel(l0);
      mv.visitFrame(Opcodes.F_NEW, 3, new Object[] { "java/lang/Object",
          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();
View Full Code Here

      mv.visitFrame(Opcodes.F_NEW, 3, new Object[] { "java/lang/Object",
          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",
View Full Code Here

          "(Ljava/lang/String;)V");
      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();
View Full Code Here

          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);
      mv.visitVarInsn(LLOAD, 1);
      mv.visitInsn(LCONST_0);
      mv.visitInsn(LCMP);
View Full Code Here

      Label l3 = new Label();
      mv.visitJumpInsn(IF_ICMPGE, l3);
      mv.visitVarInsn(ILOAD, 3);
      Label l4 = new Label();
      mv.visitJumpInsn(IFEQ, l4);
      mv.visitVarInsn(LLOAD, 1);
      mv.visitInsn(LCONST_0);
      mv.visitInsn(LCMP);
      mv.visitJumpInsn(IFNE, l4);
      mv.visitLabel(l3);
      mv.visitFrame(Opcodes.F_NEW, 3, new Object[] { "java/lang/Object",
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.