Package org.objectweb.asm

Examples of org.objectweb.asm.CodeVisitor.visitLabel()


        Label l8 = new Label();
        mv.visitJumpInsn(GOTO, l8);
        mv.visitLabel(l7);
       
        mv.visitInsn(ICONST_0);
        mv.visitLabel(l8);
       
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateJdoIsPersistentMethod() {
View Full Code Here


        mv.visitVarInsn(ALOAD, 1);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_STATE, M_SPEEDO_GET_STATUS, "()B");
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isPersistent", "(B)Z");
        Label l5 = new Label();
        mv.visitJumpInsn(IFEQ, l5);
        mv.visitLabel(l4);
        mv.visitInsn(ICONST_1);
        Label l6 = new Label();
        mv.visitJumpInsn(GOTO, l6);
       
        mv.visitLabel(l5);
View Full Code Here

        mv.visitLabel(l4);
        mv.visitInsn(ICONST_1);
        Label l6 = new Label();
        mv.visitJumpInsn(GOTO, l6);
       
        mv.visitLabel(l5);
        mv.visitInsn(ICONST_0);

        mv.visitLabel(l6);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
View Full Code Here

        mv.visitJumpInsn(GOTO, l6);
       
        mv.visitLabel(l5);
        mv.visitInsn(ICONST_0);

        mv.visitLabel(l6);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateJdoIsNewMethod() {
        CodeVisitor mv;
View Full Code Here

        mv.visitJumpInsn(IFEQ, l4);
        mv.visitInsn(ICONST_1);
        Label l5 = new Label();
        mv.visitJumpInsn(GOTO, l5);

        mv.visitLabel(l4);
        mv.visitInsn(ICONST_0);
       
        mv.visitLabel(l5);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
View Full Code Here

        mv.visitJumpInsn(GOTO, l5);

        mv.visitLabel(l4);
        mv.visitInsn(ICONST_0);
       
        mv.visitLabel(l5);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateJdoIsDeletedMethod() {
        CodeVisitor mv;
View Full Code Here

        mv.visitJumpInsn(IFEQ, l4);
        mv.visitInsn(ICONST_1);
        Label l5 = new Label();
        mv.visitJumpInsn(GOTO, l5);
       
        mv.visitLabel(l4);
        mv.visitInsn(ICONST_0);
       
        mv.visitLabel(l5);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
View Full Code Here

        mv.visitJumpInsn(GOTO, l5);
       
        mv.visitLabel(l4);
        mv.visitInsn(ICONST_0);
       
        mv.visitLabel(l5);
        mv.visitInsn(IRETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateJdoIsDetachedMethod() {
        CodeVisitor mv;
View Full Code Here

          logger.log(BasicLevel.DEBUG, "Adding static method class$(String)Class in " + classToWrite);
          CodeVisitor c = cv.visitMethod(ACC_STATIC + ACC_SYNTHETIC, CLASS_METH,
            "(Ljava/lang/String;)Ljava/lang/Class;", null, null);
          //try {
                final Label l0 = new Label();
          c.visitLabel(l0);
          //return Class.forName(str)
                c.visitVarInsn(ALOAD, 0);
          c.visitMethodInsn(INVOKESTATIC, "java/lang/Class", "forName",
            "(Ljava/lang/String;)Ljava/lang/Class;");
          final Label l1 = new Label();
View Full Code Here

          //return Class.forName(str)
                c.visitVarInsn(ALOAD, 0);
          c.visitMethodInsn(INVOKESTATIC, "java/lang/Class", "forName",
            "(Ljava/lang/String;)Ljava/lang/Class;");
          final Label l1 = new Label();
          c.visitLabel(l1);
          c.visitInsn(ARETURN);
                final Label l2 = new Label();
          c.visitLabel(l2);
          c.visitVarInsn(ASTORE, 1);
          c.visitTypeInsn(NEW, "java/lang/NoClassDefFoundError");
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.