Class ClassDocCatalog
- java.lang.Object
-
- gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.ClassDocCatalog
-
@Deprecated public class ClassDocCatalog extends java.lang.ObjectDeprecated.This class acts as an artificial PackageDoc for classes specified on the command line when running Javadoc. For example, if you specify several classes from package java.lang, this class will catalog those classes so that we can retrieve all of the classes from a particular package later.This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
- Since:
- 1.4
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.util.Set<ClassDoc>>allClassesDeprecated.Stores all classes for each packageprivate java.util.Map<java.lang.String,java.util.Set<ClassDoc>>annotationTypesDeprecated.Stores annotation types for each package.private ConfigurationconfigurationDeprecated.private java.util.Map<java.lang.String,java.util.Set<ClassDoc>>enumsDeprecated.Stores enums for each package.private java.util.Map<java.lang.String,java.util.Set<ClassDoc>>errorsDeprecated.Stores errors for each packageprivate java.util.Map<java.lang.String,java.util.Set<ClassDoc>>exceptionsDeprecated.Stores exceptions for each packageprivate java.util.Map<java.lang.String,java.util.Set<ClassDoc>>interfacesDeprecated.Stores interfaces for each packageprivate java.util.Map<java.lang.String,java.util.Set<ClassDoc>>ordinaryClassesDeprecated.Stores ordinary classes (excluding Exceptions and Errors) for each packageprivate java.util.Set<java.lang.String>packageSetDeprecated.Stores the set of packages that the classes specified on the command line belong to.private UtilsutilsDeprecated.
-
Constructor Summary
Constructors Constructor Description ClassDocCatalog()Deprecated.Construct a new ClassDocCatalog.ClassDocCatalog(ClassDoc[] classdocs, Configuration config)Deprecated.Construct a new ClassDocCatalog.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private voidaddClass(ClassDoc classdoc, java.util.Map<java.lang.String,java.util.Set<ClassDoc>> map)Deprecated.Add the given class to the given map.voidaddClassDoc(ClassDoc classdoc)Deprecated.Add the given class to the catalog.ClassDoc[]allClasses(PackageDoc pkgDoc)Deprecated.Return all of the classes specified on the command-line that belong to the given package.ClassDoc[]allClasses(java.lang.String packageName)Deprecated.Return all of the classes specified on the command-line that belong to the given package.ClassDoc[]annotationTypes(java.lang.String packageName)Deprecated.Return all of the annotation types specified on the command-line that belong to the given package.ClassDoc[]enums(java.lang.String packageName)Deprecated.Return all of the enums specified on the command-line that belong to the given package.ClassDoc[]errors(java.lang.String packageName)Deprecated.Return all of the errors specified on the command-line that belong to the given package.ClassDoc[]exceptions(java.lang.String packageName)Deprecated.Return all of the exceptions specified on the command-line that belong to the given package.private ClassDoc[]getArray(java.util.Map<java.lang.String,java.util.Set<ClassDoc>> m, java.lang.String key)Deprecated.private voidinit()Deprecated.ClassDoc[]interfaces(java.lang.String packageName)Deprecated.Return all of the interfaces specified on the command-line that belong to the given package.booleanisKnownPackage(java.lang.String packageName)Deprecated.Return true if the given package is known to this catalog.ClassDoc[]ordinaryClasses(java.lang.String packageName)Deprecated.Return all of the ordinary classes specified on the command-line that belong to the given package.java.lang.String[]packageNames()Deprecated.Return the array of package names that this catalog stores ClassDocs for.
-
-
-
Field Detail
-
packageSet
private java.util.Set<java.lang.String> packageSet
Deprecated.Stores the set of packages that the classes specified on the command line belong to. Note that the default package is "".
-
allClasses
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> allClasses
Deprecated.Stores all classes for each package
-
ordinaryClasses
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> ordinaryClasses
Deprecated.Stores ordinary classes (excluding Exceptions and Errors) for each package
-
exceptions
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> exceptions
Deprecated.Stores exceptions for each package
-
enums
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> enums
Deprecated.Stores enums for each package.
-
annotationTypes
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> annotationTypes
Deprecated.Stores annotation types for each package.
-
errors
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> errors
Deprecated.Stores errors for each package
-
interfaces
private java.util.Map<java.lang.String,java.util.Set<ClassDoc>> interfaces
Deprecated.Stores interfaces for each package
-
configuration
private Configuration configuration
Deprecated.
-
utils
private Utils utils
Deprecated.
-
-
Constructor Detail
-
ClassDocCatalog
public ClassDocCatalog(ClassDoc[] classdocs, Configuration config)
Deprecated.Construct a new ClassDocCatalog.- Parameters:
classdocs- the array of ClassDocs to catalog
-
ClassDocCatalog
public ClassDocCatalog()
Deprecated.Construct a new ClassDocCatalog.
-
-
Method Detail
-
init
private void init()
Deprecated.
-
addClassDoc
public void addClassDoc(ClassDoc classdoc)
Deprecated.Add the given class to the catalog.- Parameters:
classdoc- the ClassDoc to add to the catelog.
-
addClass
private void addClass(ClassDoc classdoc, java.util.Map<java.lang.String,java.util.Set<ClassDoc>> map)
Deprecated.Add the given class to the given map.- Parameters:
classdoc- the ClassDoc to add to the catelog.map- the Map to add the ClassDoc to.
-
getArray
private ClassDoc[] getArray(java.util.Map<java.lang.String,java.util.Set<ClassDoc>> m, java.lang.String key)
Deprecated.
-
allClasses
public ClassDoc[] allClasses(PackageDoc pkgDoc)
Deprecated.Return all of the classes specified on the command-line that belong to the given package.- Parameters:
pkgDoc- the package to return the classes for.
-
allClasses
public ClassDoc[] allClasses(java.lang.String packageName)
Deprecated.Return all of the classes specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
packageNames
public java.lang.String[] packageNames()
Deprecated.Return the array of package names that this catalog stores ClassDocs for.
-
isKnownPackage
public boolean isKnownPackage(java.lang.String packageName)
Deprecated.Return true if the given package is known to this catalog.- Parameters:
packageName- the name to check.- Returns:
- true if this catalog has any information about classes in the given package.
-
errors
public ClassDoc[] errors(java.lang.String packageName)
Deprecated.Return all of the errors specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
exceptions
public ClassDoc[] exceptions(java.lang.String packageName)
Deprecated.Return all of the exceptions specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
enums
public ClassDoc[] enums(java.lang.String packageName)
Deprecated.Return all of the enums specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
annotationTypes
public ClassDoc[] annotationTypes(java.lang.String packageName)
Deprecated.Return all of the annotation types specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
interfaces
public ClassDoc[] interfaces(java.lang.String packageName)
Deprecated.Return all of the interfaces specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
ordinaryClasses
public ClassDoc[] ordinaryClasses(java.lang.String packageName)
Deprecated.Return all of the ordinary classes specified on the command-line that belong to the given package.- Parameters:
packageName- the name of the package specified on the command-line.
-
-