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
{