Examples of RootDoc


Examples of com.sun.javadoc.RootDoc

        try {
            // wrap the root object
            ClassLoader loader = WonderlandDoclet.class.getClassLoader();
            Class<?>[] interfaces = new Class<?>[] { RootDoc.class };
            RootDocWrapper handler = new RootDocWrapper(root, types);
            RootDoc wrapper =
                    (RootDoc) Proxy.newProxyInstance(loader, interfaces, handler);
       
            // overwrite the configuration used by the standard doclet to
            // return our wrapped classes
            doclet.configuration.root = wrapper;
View Full Code Here

Examples of com.sun.javadoc.RootDoc

                                                      spewWriter,
                                                      spewWriter,
                                                      spewWriter,
                                                      this.getClass().getName(),
                                                      args);
      RootDoc root = JavadocResults.getRoot();
      if (result != 0 || root == null) {
        spewWriter.flush();
        if (JavadocClassloadingException.isClassloadingProblemPresent()) {
          throw new JavadocClassloadingException();
        }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

                                                      spewWriter,
                                                      spewWriter,
                                                      spewWriter,
                                                      this.getClass().getName(),
                                                      args);
      RootDoc root = JavadocResults.getRoot();
      if (result != 0 || root == null) {
        spewWriter.flush();
        if (JavadocClassloadingException.isClassloadingProblemPresent()) {
          throw new JavadocClassloadingException();
        }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

        options = new DocletOptions().setRecorder(recorderMock);
    }

    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.primitives");
        new JaxRsAnnotationParser(options, rootDoc).run();

        List<String> primitives = Arrays.asList("boolean", "byte", "short", "int", "long", "float", "double", "string", "date");
        for (String primitive : primitives) {
            final ApiDeclaration api = loadFixture("/fixtures/primitives/" + primitive + "s.json", ApiDeclaration.class);
View Full Code Here

Examples of com.sun.javadoc.RootDoc

        options = new DocletOptions().setRecorder(recorderMock);
    }

    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.jaxb");
        new JaxRsAnnotationParser(options, rootDoc).run();

        final ApiDeclaration api = loadFixture("/fixtures/jaxb/jaxb.json", ApiDeclaration.class);
        verify(recorderMock).record(any(File.class), eq(api));
    }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

        options = new DocletOptions().setRecorder(recorderMock);
    }

    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.jackson");
        new JaxRsAnnotationParser(options, rootDoc).run();

        final ApiDeclaration api = loadFixture("/fixtures/jackson/jackson.json", ApiDeclaration.class);
        verify(recorderMock).record(any(File.class), eq(api));
    }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

        options = new DocletOptions().setRecorder(recorderMock);
    }

    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.sample");

        boolean parsingResult = new JaxRsAnnotationParser(options, rootDoc).run();
        assertThat("JavaDoc generation failed", parsingResult, equalTo(true));

        final ResourceListing expectedListing = loadFixture("/fixtures/sample/service.json", ResourceListing.class);
View Full Code Here

Examples of com.sun.javadoc.RootDoc

        options = new DocletOptions().setRecorder(recorderMock);
    }

    @Test
    public void testStart() throws IOException {
        final RootDoc rootDoc = RootDocLoader.fromPath("src/test/resources", "fixtures.object");
        new JaxRsAnnotationParser(options, rootDoc).run();

        List<String> primitives = Arrays.asList("object");
        for (String primitive : primitives) {
            final ApiDeclaration api = loadFixture("/fixtures/object/object.json", ApiDeclaration.class);
View Full Code Here

Examples of com.sun.javadoc.RootDoc

  
   @Override
  public RootDoc valueOf(RootDoc rootDocInstance, InvocationContext context) throws Exception
  {
         RootDoc rootDoc = (RootDoc) rootDocInstance;
         FileWriter temp = new FileWriter("c:/temp/classname.txt");
         temp.write("rootDoc is " + rootDoc.getClass().getName());

         temp.write("\n options:");
         for (String[] options : rootDoc.options())
         {
            temp.write("\n");
            for (String option : options)
            {
               temp.write(option);
               temp.write(" ");
            }
         }

         temp.close();
         System.out.println("rootDoc is " + rootDoc.getClass().getName());
         for (ClassDoc classDoc : rootDoc.classes())
         {
            // classDoc.setRawCommentText( classDoc.getRawCommentText() +
            // "\n@author Christian Peter Bauer");

            SourcePosition position = classDoc.position();
View Full Code Here

Examples of com.sun.javadoc.RootDoc

      Messager.preRegister(context, "Gluebooster");
      Messager.instance0(context);
     
      JavadocTool javadocTool = JavadocTool.make0(context);
    
        RootDoc rootDoc = javadocTool.getRootDocImpl(
                    "",
                    null,
                    new ModifierFilter(ModifierFilter.ALL_ACCESS),
                    javaNames.toList(),
                    optionList.toList(),
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.