Package org.objectweb.asm

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


        mv = cv.visitMethod(ACC_PUBLIC, "jdoIsDirty", "()Z", null, null);
       
        generateReturnFalseIfNotIsActive(mv);
       
        //StateItf sa = speedoGetState();
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_STATE, "()" + JT_STATE);
        mv.visitVarInsn(ASTORE, 1);

        //if (sa == null) {
        //    return false;
View Full Code Here


        generateReturnFalseIfNotIsActive(mv);
       
        //StateItf sa = speedoGetState();
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_STATE, "()" + JT_STATE);
        mv.visitVarInsn(ASTORE, 1);

        //if (sa == null) {
        //    return false;
        //}
        mv.visitVarInsn(ALOAD, 1);
View Full Code Here

        mv.visitVarInsn(ASTORE, 1);

        //if (sa == null) {
        //    return false;
        //}
        mv.visitVarInsn(ALOAD, 1);
        Label l4 = new Label();
        mv.visitJumpInsn(IFNONNULL, l4);
        mv.visitInsn(ICONST_0);
        mv.visitInsn(IRETURN);
        mv.visitLabel(l4);
View Full Code Here

        mv.visitInsn(ICONST_0);
        mv.visitInsn(IRETURN);
        mv.visitLabel(l4);

        //byte status = sa.jdoGetStatus();
        mv.visitVarInsn(ALOAD, 1);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_STATE, M_SPEEDO_GET_STATUS, "()B");
        mv.visitVarInsn(ISTORE, 2);

        //return !LifeCycle.isTransient(status) && LifeCycle.isDirty(status);
        mv.visitVarInsn(ILOAD, 2);
View Full Code Here

        mv.visitLabel(l4);

        //byte status = sa.jdoGetStatus();
        mv.visitVarInsn(ALOAD, 1);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_STATE, M_SPEEDO_GET_STATUS, "()B");
        mv.visitVarInsn(ISTORE, 2);

        //return !LifeCycle.isTransient(status) && LifeCycle.isDirty(status);
        mv.visitVarInsn(ILOAD, 2);
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isTransient", "(B)Z");
        Label l7 = new Label();
View Full Code Here

        mv.visitVarInsn(ALOAD, 1);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_STATE, M_SPEEDO_GET_STATUS, "()B");
        mv.visitVarInsn(ISTORE, 2);

        //return !LifeCycle.isTransient(status) && LifeCycle.isDirty(status);
        mv.visitVarInsn(ILOAD, 2);
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isTransient", "(B)Z");
        Label l7 = new Label();
        mv.visitJumpInsn(IFNE, l7);

        mv.visitVarInsn(ILOAD, 2);
View Full Code Here

        mv.visitVarInsn(ILOAD, 2);
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isTransient", "(B)Z");
        Label l7 = new Label();
        mv.visitJumpInsn(IFNE, l7);

        mv.visitVarInsn(ILOAD, 2);
        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isDirty", "(B)Z");
        mv.visitJumpInsn(IFEQ, l7);
       
        mv.visitInsn(ICONST_1);
        Label l8 = new Label();
View Full Code Here

        CodeVisitor mv;
        mv = cv.visitMethod(ACC_PUBLIC, "jdoIsTransactional", "()Z", null, null);
        generateReturnFalseIfNotIsActive(mv);
       
        //StateItf sa = speedoGetState();
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_STATE, "()" + JT_STATE);
        mv.visitVarInsn(ASTORE, 1);

        //if (sa == null) {
        //    return false;
View Full Code Here

        generateReturnFalseIfNotIsActive(mv);
       
        //StateItf sa = speedoGetState();
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_STATE, "()" + JT_STATE);
        mv.visitVarInsn(ASTORE, 1);

        //if (sa == null) {
        //    return false;
        //}
        mv.visitVarInsn(ALOAD, 1);
View Full Code Here

        mv.visitVarInsn(ASTORE, 1);

        //if (sa == null) {
        //    return false;
        //}
        mv.visitVarInsn(ALOAD, 1);
        Label l4 = new Label();
        mv.visitJumpInsn(IFNONNULL, l4);
        mv.visitInsn(ICONST_0);
        mv.visitInsn(IRETURN);
        mv.visitLabel(l4);
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.