Examples of RootDoc


Examples of com.sun.javadoc.RootDoc

  private void initializeChildren()
  {
   
    if (doc instanceof RootDoc)
    {
      RootDoc docInstance = (RootDoc) doc;
      Set packages = new HashSet<PackageDoc>();
      for (ClassDoc classDoc: docInstance.classes())
      {
        System.out.println("found class: " + classDoc.name());
        packages.add(classDoc.containingPackage());
      }
      List<PackageDoc> packageList = new ArrayList<PackageDoc>(packages.size());
      packageList.addAll(packages);
      Collections.sort(packageList);
      addChildDocs(packageList);
    }
    else if (doc instanceof AnnotationTypeDoc)
    {
      AnnotationTypeDoc docInstance = (AnnotationTypeDoc) doc;
     
    }
    else if (doc instanceof AnnotationTypeElementDoc)//is subinterface of method so it must com before the MethodDoc
    {
      AnnotationTypeElementDoc docInstance = (AnnotationTypeElementDoc) doc;
     
    }
    else if (doc instanceof MethodDoc)
    {
      MethodDoc docInstance = (MethodDoc) doc;
     
    }
    else if (doc instanceof ClassDoc)
    {
      ClassDoc docInstance = (ClassDoc) doc;
      Doc[] substructure;

      substructure = docInstance.enumConstants();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.fields();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.constructors();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
      substructure = docInstance.methods();
      Arrays.sort(substructure);
      addChildDocs(substructure );

      substructure = docInstance.innerClasses();
      Arrays.sort(substructure);
      addChildDocs(substructure );
     
     
    }
    else if (doc instanceof ConstructorDoc)
    {
      ConstructorDoc docInstance = (ConstructorDoc) doc;
     
    }
    else if (doc instanceof FieldDoc)
    {
      FieldDoc docInstance = (FieldDoc) doc;
     
    }
    else if (doc instanceof PackageDoc)
    {
      PackageDoc docInstance = (PackageDoc) doc;
      ClassDoc[] classes = docInstance.allClasses();
      Arrays.sort(classes);
      addChildDocs(classes );
    }
    else
    {
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.