Package org.objectweb.asm

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


      int i;
      // visits instructions
      for (i = 0; i < instructions.size(); ++i) {
        Object insn = instructions.get(i);
        if (insn instanceof Label) {
          mv.visitLabel((Label)insn);
        } else {
          ((AbstractInsnNode)insn).accept(mv);
        }
      }
      // visits try catch blocks
View Full Code Here


          }
        }
        // break;
          mv.visitJumpInsn(GOTO, switchEndLabel);
      }
      mv.visitLabel(switchEndLabel);
      // }
        mv.visitInsn(RETURN);
        mv.visitMaxs(0, 0);
     
      if (listenclass != null) {
View Full Code Here

       
      String listenclass = null;
      // switch (evt.type) {
      for (int j = 0; j < nbCase; j++) {
        // case [assoc EJB_CB(cbn) <-> evt.type]:
        mv.visitLabel(keyLabels[j]);
        ArrayList<SpeedoCallback> cbl = (ArrayList<SpeedoCallback>) gc.sc.callBacks.get(keys[j]);
        if (cbl == null) {
          continue;
        }
        for (SpeedoCallback actualcbn : cbl) {
View Full Code Here

        mv.visitMethodInsn(INVOKEINTERFACE, JCN_HOME, "getPOManagerFactory",
                "()" + JT_POMF);
        mv.visitMethodInsn(INVOKEINTERFACE, JCN_POMF, "lookup", "()" + JT_POM);
        Label l2 = new Label();
        mv.visitJumpInsn(GOTO, l2);
        mv.visitLabel(l1);
        mv.visitInsn(ACONST_NULL);
        mv.visitLabel(l2);
        mv.visitInsn(ARETURN);
        mv.visitMaxs(0, 0);
    }
View Full Code Here

        mv.visitMethodInsn(INVOKEINTERFACE, JCN_POMF, "lookup", "()" + JT_POM);
        Label l2 = new Label();
        mv.visitJumpInsn(GOTO, l2);
        mv.visitLabel(l1);
        mv.visitInsn(ACONST_NULL);
        mv.visitLabel(l2);
        mv.visitInsn(ARETURN);
        mv.visitMaxs(0, 0);
    }
    private void generateJdoReplaceFlagsMethod() {
        CodeVisitor mv = cv.visitMethod(ACC_PUBLIC, "jdoReplaceFlags",
View Full Code Here

        mv.visitVarInsn(ALOAD, 1);
        Label l4 = new Label();
        mv.visitJumpInsn(IFNONNULL, l4);
        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);
View Full Code Here

       
        mv.visitInsn(ICONST_1);
        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);
View Full Code Here

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

        mv.visitVarInsn(ALOAD, 1);
        Label l4 = new Label();
        mv.visitJumpInsn(IFNONNULL, l4);
        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);
View Full Code Here

        mv.visitMethodInsn(INVOKESTATIC, JCN_LIFE_CYCLE, "isTransactional", "(B)Z");
        mv.visitJumpInsn(IFEQ, l7);
        mv.visitInsn(ICONST_1);
        Label l8 = new Label();
        mv.visitJumpInsn(GOTO, l8);
        mv.visitLabel(l7);
       
        mv.visitInsn(ICONST_0);
        mv.visitLabel(l8);
       
        mv.visitInsn(IRETURN);
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.