Package org.objectweb.asm.commons

Examples of org.objectweb.asm.commons.GeneratorAdapter.visitJumpInsn()


        // Access the flag from the outer class
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_name, "this$0", "L" + m_outer + ";");
        mv.visitFieldInsn(GETFIELD, m_outer, getMethodFlagName(name, desc), "Z");
        mv.visitJumpInsn(IFNE, l0);

        mv.visitVarInsn(ALOAD, 0);
        mv.loadArgs();
        mv.visitMethodInsn(INVOKESPECIAL, m_name, ClassManipulator.PREFIX + name, desc, false);
        mv.visitInsn(returnType.getOpcode(IRETURN));
View Full Code Here


        mv.visitMethodInsn(INVOKEVIRTUAL, "org/apache/felix/ipojo/InstanceManager",
                ClassManipulator.EXIT, "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V", false);

        mv.visitLabel(l1);
        Label l7 = new Label();
        mv.visitJumpInsn(GOTO, l7);
        mv.visitLabel(l2);

        mv.visitVarInsn(ASTORE, exception);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_name, "this$0", "L" + m_outer + ";");
View Full Code Here

        mv.visitTryCatchBlock(l0, l1, l2, "java/lang/Throwable");

        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_owner, generateMethodFlag(name, desc), "Z");
        mv.visitJumpInsn(IFNE, l0);

        mv.visitVarInsn(ALOAD, 0);
        mv.loadArgs();
        mv.visitMethodInsn(INVOKESPECIAL, m_owner, PREFIX + name, desc, false);
        mv.visitInsn(returnType.getOpcode(IRETURN));
View Full Code Here

        mv.visitMethodInsn(INVOKEVIRTUAL, "org/apache/felix/ipojo/InstanceManager", EXIT,
                "(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V", false);

        mv.visitLabel(l1);
        Label l7 = new Label();
        mv.visitJumpInsn(GOTO, l7);
        mv.visitLabel(l2);

        mv.visitVarInsn(ASTORE, exception);
        mv.visitVarInsn(ALOAD, 0);
        mv.visitFieldInsn(GETFIELD, m_owner, IM_FIELD, "Lorg/apache/felix/ipojo/InstanceManager;");
View Full Code Here

    compile( _a );
    compile( _b );
    compile( _c );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitInsn( Opcodes.LCMP );
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ICONST_0 );
    mv.visitLabel( l_1 );
View Full Code Here

    compile( _c );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitInsn( Opcodes.LCMP );
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    mv.visitInsn( Opcodes.ICONST_1 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.ICONST_0 );
    mv.visitLabel( l_1 );
    compile_context();
    compile_computationMode();
View Full Code Here

    final int loc = localsOffset();
    Label l_0 = new Label();
    Label l_1 = new Label();
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 0 + loc );
    mv.visitJumpInsn( Opcodes.IFNONNULL, l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/lang/Number", "longValue", "()J" );
View Full Code Here

    Label l_1 = new Label();
    mv.visitInsn( Opcodes.DUP );
    mv.visitVarInsn( Opcodes.ASTORE, 0 + loc );
    mv.visitJumpInsn( Opcodes.IFNONNULL, l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitVarInsn( Opcodes.ALOAD, 0 + loc );
    mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL, "java/lang/Number", "longValue", "()J" );
    mv.visitLabel( l_1 );
  }
View Full Code Here

  {
    final GeneratorAdapter mv = mv();
    final int loc = localsOffset();
    Label l_0 = new Label();
    Label l_1 = new Label();
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    compile_one();
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitLabel( l_1 );
View Full Code Here

    final int loc = localsOffset();
    Label l_0 = new Label();
    Label l_1 = new Label();
    mv.visitJumpInsn( Opcodes.IFEQ, l_0 );
    compile_one();
    mv.visitJumpInsn( Opcodes.GOTO, l_1 );
    mv.visitLabel( l_0 );
    mv.visitInsn( Opcodes.LCONST_0 );
    mv.visitLabel( l_1 );
  }
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.