Examples of visitEnd()


Examples of org.glassfish.hk2.external.org.objectweb.asm.FieldVisitor.visitEnd()

    protected void addSVUID(long svuid) {
        FieldVisitor fv = super.visitField(Opcodes.ACC_FINAL
                + Opcodes.ACC_STATIC, "serialVersionUID", "J", null, new Long(
                svuid));
        if (fv != null) {
            fv.visitEnd();
        }
    }

    /**
     * Computes and returns the value of SVUID.
View Full Code Here

Examples of org.glassfish.hk2.external.org.objectweb.asm.MethodVisitor.visitEnd()

            mv.visitVarInsn(ALOAD, 1);
            mv.visitMethodInsn(INVOKESPECIAL, "java/lang/NoClassDefFoundError",
                    "<init>", "(Ljava/lang/String;)V");
            mv.visitInsn(ATHROW);
            mv.visitMaxs(3, 2);
            mv.visitEnd();

            classOptimizer.class$ = true;
        }

        String clsName = classOptimizer.clsName;
View Full Code Here

Examples of org.jacoco.core.data.IClassStructureVisitor.visitEnd()

        "java/lang/Object", new String[0]);
    final IMethodStructureVisitor methodStructure1 = classStructure1
        .visitMethodStructure("doit", "()V", null);
    methodStructure1.block(0, 3, new int[] { 3, 4, 5 });
    methodStructure1.visitEnd();
    classStructure1.visitEnd();

    final IClassStructureVisitor classStructure2 = coverageBuilder
        .visitClassStructure(2);
    classStructure2.visit("org/jacoco/examples/Sample2", null,
        "java/lang/Object", new String[0]);
View Full Code Here

Examples of org.jacoco.core.data.IMethodStructureVisitor.visitEnd()

    classStructure.visit("org/jacoco/examples/Sample", null,
        "java/lang/Object", new String[0]);
    final IMethodStructureVisitor methodStructure = classStructure
        .visitMethodStructure("doit", "()V", null);
    methodStructure.block(0, 5, new int[] { 6, 7, 8 });
    methodStructure.visitEnd();
    classStructure.visitEnd();

    final Collection<ClassCoverage> classes = coverageBuilder.getClasses();
    assertEquals(1, classes.size(), 1.0);
    ClassCoverage c = classes.iterator().next();
View Full Code Here

Examples of org.jacoco.core.internal.flow.MethodProbesVisitor.visitEnd()

  @Test
  public void testMethodFilter_Empty() {
    final MethodProbesVisitor mv = analyzer.visitMethod(0, "foo", "()V",
        null, null);
    mv.visitEnd();
    Collection<IMethodCoverage> methods = analyzer.getCoverage()
        .getMethods();
    assertEquals(0, methods.size());
  }
View Full Code Here

Examples of org.jacoco.report.IReportVisitor.visitEnd()

    visitor.visitBundle(bundleCoverage, new DirectorySourceFileLocator(
        sourceDirectory, "utf-8"));

    // Signal end of structure information to allow report to write all
    // information out
    visitor.visitEnd();

  }

  private void loadExecutionData() throws IOException {
    final FileInputStream fis = new FileInputStream(executionDataFile);
View Full Code Here

Examples of org.jruby.compiler.impl.SkinnyMethodAdapter.visitEnd()

                null, null);

        mv.start();
        generate(builder, mv, signature, 5);
        mv.visitMaxs(30, 30);
        mv.visitEnd();
    }

    public void generate(AsmClassBuilder builder, SkinnyMethodAdapter mv, JITSignature signature, int firstParam) {
        final Class nativeIntType = getInvokerIntType();
        int pointerCount = 0;
View Full Code Here

Examples of org.kohsuke.asm3.ClassWriter.visitEnd()

            m.visitInsn(RETURN);
            m.visitMaxs(index,index);
            m.visitEnd();
        }

        cw.visitEnd();
        byte[] image = cw.toByteArray();

        Class<? extends T> c = defineClass(name, image, 0, image.length).asSubclass(base);

        Jenkins h = Jenkins.getInstance();
View Full Code Here

Examples of org.kohsuke.asm3.MethodVisitor.visitEnd()

                index += t.getSize();
            }
            m.visitMethodInsn(INVOKESPECIAL, Type.getInternalName(base), "<init>", methodDescriptor);
            m.visitInsn(RETURN);
            m.visitMaxs(index,index);
            m.visitEnd();
        }

        cw.visitEnd();
        byte[] image = cw.toByteArray();
View Full Code Here

Examples of org.mockito.asm.AnnotationVisitor.visitEnd()

        int i, j, n;
        if (annotationDefault != null) {
            AnnotationVisitor av = mv.visitAnnotationDefault();
            AnnotationNode.accept(av, null, annotationDefault);
            if (av != null) {
                av.visitEnd();
            }
        }
        n = visibleAnnotations == null ? 0 : visibleAnnotations.size();
        for (i = 0; i < n; ++i) {
            AnnotationNode an = (AnnotationNode) visibleAnnotations.get(i);
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.