Package org.objectweb.asm

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


        mv.visitFieldInsn(GETFIELD, classToWrite, ISACTIVE_FIELD_NAME, "Z");
        Label l1 = new Label();
        mv.visitJumpInsn(IFNE, l1);
        mv.visitInsn(ICONST_0);
        mv.visitInsn(IRETURN);
        mv.visitLabel(l1);

        //StateItf sa = speedoGetState();
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_STATE, "()" + JT_STATE);
        mv.visitVarInsn(ASTORE, 1);
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

                        cv.visitInsn(ICONST_0);
                        cv.visitMethodInsn(INVOKEINTERFACE,
                                getJVMClassName(StateItf.class),
                                "indexFieldModified", "(IZ)V");
                    }
                    cv.visitLabel(labelNext);
                }
            }
        }
        cv.visitLabel(labelEnd);
        //return sa;
View Full Code Here

                    }
                    cv.visitLabel(labelNext);
                }
            }
        }
        cv.visitLabel(labelEnd);
        //return sa;
        cv.visitVarInsn(ALOAD, 4);
        cv.visitInsn(ARETURN);
        cv.visitMaxs(0, 0);
    }
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);
    }
   
}
View Full Code Here

        {
            //return false;
            cv.visitInsn(ICONST_0);
            cv.visitInsn(IRETURN);
        }
        cv.visitLabel(l0);
        //} else if ("*".equals(cacheName)) {
        cv.visitLdcInsn("*");
        cv.visitVarInsn(ALOAD, 1);
        cv.visitMethodInsn(INVOKEVIRTUAL, "java/lang/String", "equals", "(Ljava/lang/Object;)Z");
        Label labelElse = new Label();
View Full Code Here

            }
            //return true;
            cv.visitInsn(ICONST_1);
            cv.visitInsn(IRETURN);
        }
        cv.visitLabel(labelElse);
        for (int ucIdx = 0; ucIdx < gc.userCacheNames.length; ucIdx++) {
            final String ucn = gc.userCacheNames[ucIdx];
            //} else if ("${ucn}".equals(cacheName)) {
            cv.visitLdcInsn(ucn);
            cv.visitVarInsn(ALOAD, 1);
View Full Code Here

                cv.visitInsn(POP);
                //return true;
                cv.visitInsn(ICONST_1);
                cv.visitInsn(IRETURN);
            }
            cv.visitLabel(labelNext);
        }
        //return false;
        cv.visitInsn(ICONST_0);
        cv.visitInsn(IRETURN);
        cv.visitMaxs(0, 0);
View Full Code Here

        mv.visitFieldInsn(GETFIELD, classToWrite, ISACTIVE_FIELD_NAME, "Z");
        Label l1 = new Label();
        mv.visitJumpInsn(IFNE, l1);
        generateGetRefState(mv, false);
        mv.visitInsn(ARETURN);
        mv.visitLabel(l1);

        //return speedoGetHome().getSpeedoAccessor(this);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitMethodInsn(INVOKEVIRTUAL, classToWrite, M_SPEEDO_GET_HOME, "()" + JT_HOME);
        mv.visitVarInsn(ALOAD, 0);
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.