Examples of RootDoc


Examples of com.sun.javadoc.RootDoc

  }
   
  @Test
  public void testGetFieldComment() throws Exception{
   
    RootDoc doc =  createDefaultRootDoc();
    String comment = null;
    for (ClassDoc classDoc: doc.classes()){
      if (classDoc.name().equals("SampleClass")){
        comment = DocBoostUtils.getFieldComment(classDoc,
            "textproperty", true, true);
       
      }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

    Assert.assertNotNull(comment);
  }
 
  @Test
  public void testCreateJavadocOfFile() throws Exception{
    RootDoc doc =  createDefaultRootDoc();
    String comment = null;
    for (ClassDoc classDoc: doc.classes()){
        RootDoc rootDoc = DocBoostUtils.createJavadocOfFile(new ClassDocDelegate(classDoc).getSourcefile());
        Assert.assertNotNull(rootDoc);
       
    }
  }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

  }
 
  @Test
  public void testMergeComment() throws Exception{
   
    RootDoc doc =  createDefaultRootDoc();
    String comment = "added text";
    for (ClassDoc classDoc: doc.classes()){
      for (MethodDoc methodDoc: classDoc.methods()){
        DocBoostUtils.mergeComment(methodDoc, comment, true, false,
            (String[]) null);
      }
       
View Full Code Here

Examples of com.sun.javadoc.RootDoc

    // generated the default output
    File standardDocletResults = createTempDirectory("StandardDocletResult");
    HashMap<String, String> options = new HashMap<String,String>();
    options.put(DocBoostUtils.OPTION_OUTPUT_DIR,
        standardDocletResults.getCanonicalPath());
    RootDoc root = DocBoostUtils.createJavadoc(sourcecodeDir, options);
    Assert.assertNotNull(root);
    Standard.start(root);
    link = "See </pre><a href='StandardDocletResult/index.html'  target='_blank'>the original javadoc</a><pre>";

    // Now do the same with the BoostedStandardDoclet
View Full Code Here

Examples of com.sun.javadoc.RootDoc

  public void exampleUse() throws Exception{

    //TODO refactor dir.delete into method

    //[gb:useInDocumentation]
    RootDoc rootDoc =  createDefaultRootDoc();
    File dir = File.createTempFile("ExampleCreatingRootDocHandler", "dir");
    dir.delete();//delete the file because it is not a directory. it will be created later
    ExampleCreatingRootDocHandler handler = new ExampleCreatingRootDocHandler(dir);
    handler.evaluate(rootDoc);
    //[/gb:useInDocumentation]
View Full Code Here

Examples of com.sun.javadoc.RootDoc

    //[gb:useInDocumentation]
    
     /*
      * If the handler is used in a doclet, the root doc is created by it.
      */
    RootDoc rootDoc = createDefaultRootDoc();

    CollectionAppendingDocHandler<String> handler = new CollectionAppendingDocHandler<String>() {
      /**
       * Just a counter to fill the text
       */
 
View Full Code Here

Examples of com.sun.javadoc.RootDoc

  @Test
  @Example(clasz=FeatureCollector.class)
  public void example() throws Exception{
    //[gb:useInDocumentation]
    //get some rootDoc
    RootDoc rootDoc = createDefaultRootDoc();
   
    StringWriter report = new StringWriter();
    DeprecationsCollector.createReport(rootDoc, report);
    //[/gb:useInDocumentation]
    getLog().trace(report);
View Full Code Here

Examples of com.sun.javadoc.RootDoc

  @Test
  public void testStart() throws Exception{
   
    HashMap<String, String> options = new HashMap<String,String>();
    options.put(DocUtils.OPTION_OUTPUT_DIR, sourcecodeDir.getCanonicalPath());
    RootDoc root = DocUtils.createJavadoc(sourcecodeDir, options);
    DefaultStandardDocletSubclass.start(root);
    Assert.assertNotNull(root);
  }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

   
    FileUtils.deleteDirectory(sourcecodeDir);
  }
 
  public RootDoc createDefaultRootDoc() throws Exception{
    RootDoc doc =  DocUtils.createJavadoc(sourcecodeDir, null);   
    return doc;
  }
View Full Code Here

Examples of com.sun.javadoc.RootDoc

  @Test
  @Example(clasz=FeatureCollector.class)
  public void example() throws Exception{
    //[gb:useInDocumentation]
    //get some rootDoc
    RootDoc rootDoc = createDefaultRootDoc();
   
    StringWriter report = new StringWriter();
    FeatureCollector.createReport(rootDoc, report);
    //[/gb:useInDocumentation]
    getLog().trace(report);
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.