Class RootDocImpl
java.lang.Object
gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
gw.gosudoc.com.sun.tools.javadoc.main.RootDocImpl
- All Implemented Interfaces:
Doc,DocErrorReporter,RootDoc,Comparable<Object>
Deprecated.
This class holds the information from one run of javadoc.
Particularly the packages, classes and options specified
by the user.
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.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.sun.tools.javac.util.List<ClassDocImpl>Deprecated.list of classes specified on the command line.private com.sun.tools.javac.util.List<PackageDocImpl>Deprecated.list of packages specified on the command line.private com.sun.tools.javac.util.List<String[]>Deprecated.a collection of all options.Fields inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
documentation, env, treePath -
Constructor Summary
ConstructorsConstructorDescriptionRootDocImpl(DocEnv env, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCClassDecl> classes, com.sun.tools.javac.util.List<String> packages, com.sun.tools.javac.util.List<String[]> options) Deprecated.Constructor used when reading source files.RootDocImpl(DocEnv env, com.sun.tools.javac.util.List<String> classes, com.sun.tools.javac.util.List<String[]> options) Deprecated.Constructor used when reading class files. -
Method Summary
Modifier and TypeMethodDescriptionClassDoc[]classes()Deprecated.Return all classes and interfaces (including those inside packages) to be documented.classNamed(String qualifiedName) Deprecated.Return a ClassDoc for the specified class/interface nameprotected StringDeprecated.Do lazy initialization of "documentation" string.Deprecated.Return the current file manager.Deprecated.Return the locale provided by the user or the default locale value.private JavaFileObjectDeprecated.Return the path of the overview file and null if it does not exist.voidinitDocLint(Collection<String> opts, Collection<String> customTagNames, String htmlVersion) Deprecated.initJavaScriptScanner(boolean allowScriptInComments) Deprecated.booleanisFunctionalInterface(AnnotationDesc annotationDesc) Deprecated.booleanDeprecated.Return true if this Doc is include in the active set.name()Deprecated.Return the name of this Doc item.String[][]options()Deprecated.Command line options.packageNamed(String name) Deprecated.Return a PackageDoc for the specified package nameposition()Deprecated.Return the source position of the entity, or null if no position is available.voidprintError(SourcePosition pos, String msg) Deprecated.Print error message, increment error count.voidprintError(String msg) Deprecated.Print error message, increment error count.voidprintNotice(SourcePosition pos, String msg) Deprecated.Print a message.voidprintNotice(String msg) Deprecated.Print a message.voidprintWarning(SourcePosition pos, String msg) Deprecated.Print warning message, increment warning count.voidprintWarning(String msg) Deprecated.Print warning message, increment warning count.Deprecated.Return the name of this Doc item.private voidsetClasses(DocEnv env, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCClassDecl> classes) Deprecated.Initialize classes information.private voidsetPackages(DocEnv env, com.sun.tools.javac.util.List<String> packages) Deprecated.Initialize packages information.booleanDeprecated.ClassDoc[]Deprecated.Classes and interfaces specified on the command line.Deprecated.Packages specified on the command line.Methods inherited from class gw.gosudoc.com.sun.tools.javadoc.main.DocImpl
comment, commentText, compareTo, firstSentenceTags, generateKey, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isInterface, isMethod, isOrdinaryClass, key, readHTMLDocumentation, seeTags, setRawCommentText, setTreePath, tags, tags, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.gosudoc.com.sun.javadoc.Doc
commentText, compareTo, firstSentenceTags, getRawCommentText, inlineTags, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isEnum, isEnumConstant, isError, isException, isField, isInterface, isMethod, isOrdinaryClass, seeTags, setRawCommentText, tags, tags
-
Field Details
-
cmdLineClasses
Deprecated.list of classes specified on the command line. -
cmdLinePackages
Deprecated.list of packages specified on the command line. -
options
Deprecated.a collection of all options.
-
-
Constructor Details
-
RootDocImpl
public RootDocImpl(DocEnv env, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCClassDecl> classes, com.sun.tools.javac.util.List<String> packages, com.sun.tools.javac.util.List<String[]> options) Deprecated.Constructor used when reading source files.- Parameters:
env- the documentation environment, state for this javadoc runclasses- list of classes specified on the commandlinepackages- list of package names specified on the commandlineoptions- list of options
-
RootDocImpl
public RootDocImpl(DocEnv env, com.sun.tools.javac.util.List<String> classes, com.sun.tools.javac.util.List<String[]> options) Deprecated.Constructor used when reading class files.- Parameters:
env- the documentation environment, state for this javadoc runclasses- list of class names specified on the commandlineoptions- list of options
-
-
Method Details
-
setClasses
private void setClasses(DocEnv env, com.sun.tools.javac.util.List<com.sun.tools.javac.tree.JCTree.JCClassDecl> classes) Deprecated.Initialize classes information. Those classes are input from command line.- Parameters:
env- the compilation environmentclasses- a list of ClassDeclaration
-
setPackages
Deprecated.Initialize packages information.- Parameters:
env- the compilation environmentpackages- a list of package names (String)
-
options
Deprecated.Command line options.For example, given: javadoc -foo this that -bar other ... This method will return: options()[0][0] = "-foo" options()[0][1] = "this" options()[0][2] = "that" options()[1][0] = "-bar" options()[1][1] = "other" -
specifiedPackages
Deprecated.Packages specified on the command line.- Specified by:
specifiedPackagesin interfaceRootDoc- Returns:
- packages specified on the command line.
-
specifiedClasses
Deprecated.Classes and interfaces specified on the command line.- Specified by:
specifiedClassesin interfaceRootDoc- Returns:
- classes and interfaces specified on the command line.
-
classes
Deprecated.Return all classes and interfaces (including those inside packages) to be documented. -
classNamed
Deprecated.Return a ClassDoc for the specified class/interface name- Specified by:
classNamedin interfaceRootDoc- Parameters:
qualifiedName- qualified class name (i.e. includes package name).- Returns:
- a ClassDocImpl holding the specified class, null if this class is not referenced.
-
packageNamed
Deprecated.Return a PackageDoc for the specified package name- Specified by:
packageNamedin interfaceRootDoc- Parameters:
name- package name- Returns:
- a PackageDoc holding the specified package, null if this package is not referenced.
-
name
Deprecated.Return the name of this Doc item. -
qualifiedName
Deprecated.Return the name of this Doc item.- Specified by:
qualifiedNamein classDocImpl- Returns:
- the string
"*RootDocImpl*".
-
isIncluded
public boolean isIncluded()Deprecated.Return true if this Doc is include in the active set. RootDocImpl isn't even a program entity so it is always false.- Specified by:
isIncludedin interfaceDoc- Specified by:
isIncludedin classDocImpl- Returns:
- true if this Doc item is included in the result set.
-
printError
Deprecated.Print error message, increment error count.- Specified by:
printErrorin interfaceDocErrorReporter- Parameters:
msg- message to print
-
printError
Deprecated.Print error message, increment error count.- Specified by:
printErrorin interfaceDocErrorReporter- Parameters:
msg- message to printpos- the position item where the error occurs
-
printWarning
Deprecated.Print warning message, increment warning count.- Specified by:
printWarningin interfaceDocErrorReporter- Parameters:
msg- message to print
-
printWarning
Deprecated.Print warning message, increment warning count.- Specified by:
printWarningin interfaceDocErrorReporter- Parameters:
msg- message to printpos- the position item where the warning occurs
-
printNotice
Deprecated.Print a message.- Specified by:
printNoticein interfaceDocErrorReporter- Parameters:
msg- message to print
-
printNotice
Deprecated.Print a message.- Specified by:
printNoticein interfaceDocErrorReporter- Parameters:
msg- message to printpos- the position item where the message occurs
-
getOverviewPath
Deprecated.Return the path of the overview file and null if it does not exist.- Returns:
- the path of the overview file and null if it does not exist.
-
documentation
Deprecated.Do lazy initialization of "documentation" string.- Overrides:
documentationin classDocImpl
-
position
Deprecated.Return the source position of the entity, or null if no position is available. -
getLocale
Deprecated.Return the locale provided by the user or the default locale value. -
getFileManager
Deprecated.Return the current file manager. -
initDocLint
public void initDocLint(Collection<String> opts, Collection<String> customTagNames, String htmlVersion) Deprecated. -
initJavaScriptScanner
Deprecated. -
isFunctionalInterface
Deprecated. -
showTagMessages
public boolean showTagMessages()Deprecated.
-