Klasse BaseConfiguration
- Bekannte direkte Unterklassen:
HtmlConfiguration
Doclets should subclass BaseConfiguration, to configure and add their own options. This class contains all user options which are supported by the standard doclet.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected BuilderFactoryThe factory for builders.The doclet environment.final DocletThe doclet that created this configuration.The tracker of external package links.final GroupThe package grouping instance.final LocaleThe meta tag keywords instance.A sorted map, giving the (specified|included|other) packages for each module.The list of known modules, that should be documented.A sorted set of included packages.final Reporterprotected static final StringbooleanGenerate modules documentation if more than one module is present.Sourcepath from where to read the source files.The taglet manager.The catalog of classes specified on the command-lineAn utility class for commonly used helpersAll the temporary accessors to javac internals. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBaseConfiguration(Doclet doclet, Locale locale, Reporter reporter) Constructs the format-independent configuration needed by the doclet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract booleanThis method should be defined in all those doclets (configurations), which want to derive themselves from this BaseConfiguration.protected booleanReturn the builder factory for this doclet.Return the qualified name of the Element if its qualifier is not excluded.abstract Runtime.VersionReturns the version of thedoclet.abstract Resourcesabstract JavaFileManagerReturn the current file manager.abstract LocaleReturn the Locale for this document.abstract Messagesabstract BaseOptionsabstract JavaFileObjectReturn the path of the overview file and null if it does not exist.abstract WriterFactoryReturn the doclet specific instance of a writer factory.protected voidinitConfiguration(DocletEnvironment docEnv, Function<String, String> resourceKeyMapper) voidinitDocLint(List<String> opts, Set<String> customTagNames) Initializes DocLint, if appropriate, depending on options derived from the doclet command-line options, and the set of custom tags that should be ignored by DocLint.booleanReturns whether or not to allow JavaScript in comments.booleanbooleanbooleanReturn true if the TypeElement element is getting documented, depending upon -nodeprecated option and the deprecation information.booleanDetermines if JavaFX is available in the compilation environment.voidrunDocLint(TreePath path) booleanSet the command-line options supported by this configuration.booleanshouldExcludeDocFileDir(String docfilesubdir) Return true if the given doc-file subdirectory should be excluded and false otherwise.booleanshouldExcludeQualifier(String qualifier) Return true if the given qualifier should be excluded and false otherwise.
-
Felddetails
-
doclet
The doclet that created this configuration. -
builderFactory
The factory for builders. -
tagletManager
The taglet manager. -
metakeywords
The meta tag keywords instance. -
docEnv
The doclet environment. -
utils
An utility class for commonly used helpers -
workArounds
All the temporary accessors to javac internals. -
sourcepath
Sourcepath from where to read the source files.Default is classpath.
-
showModules
Generate modules documentation if more than one module is present. -
typeElementCatalog
The catalog of classes specified on the command-line -
group
The package grouping instance. -
extern
The tracker of external package links. -
reporter
-
locale
-
cmtUtils
-
packages
A sorted set of included packages. -
overviewElement
-
docFileFactory
-
modulePackages
A sorted map, giving the (specified|included|other) packages for each module. -
modules
The list of known modules, that should be documented. -
propertyUtils
-
-
Konstruktordetails
-
BaseConfiguration
Constructs the format-independent configuration needed by the doclet.- Parameter:
doclet- the doclet for this run of javadoclocale- the locale for the generated documentationreporter- the reporter to use for console messages
-
-
Methodendetails
-
getMessages
-
getDocResources
-
getDocletVersion
Returns the version of thedoclet.- Gibt zurück:
- the version
-
finishOptionSettings
This method should be defined in all those doclets (configurations), which want to derive themselves from this BaseConfiguration.This method can be used to finish up the options setup.
- Gibt zurück:
- true if successful and false otherwise
-
getOptions
-
initConfiguration
protected void initConfiguration(DocletEnvironment docEnv, Function<String, String> resourceKeyMapper) -
getBuilderFactory
Return the builder factory for this doclet.- Gibt zurück:
- the builder factory for this doclet.
-
getReporter
-
getSpecifiedModuleElements
-
getSpecifiedPackageElements
-
getSpecifiedTypeElements
-
getIncludedModuleElements
-
getIncludedPackageElements
-
getIncludedTypeElements
-
finishOptionSettings0
- Löst aus:
DocletException
-
setOptions
Set the command-line options supported by this configuration.- Gibt zurück:
- true if the options are set successfully
- Löst aus:
DocletException- if there is a problem while setting the options
-
shouldExcludeDocFileDir
Return true if the given doc-file subdirectory should be excluded and false otherwise.- Parameter:
docfilesubdir- the doc-files subdirectory to check.- Gibt zurück:
- true if the directory is excluded.
-
shouldExcludeQualifier
Return true if the given qualifier should be excluded and false otherwise.- Parameter:
qualifier- the qualifier to check.- Gibt zurück:
- true if the qualifier should be excluded
-
getClassName
Return the qualified name of the Element if its qualifier is not excluded.Otherwise return the unqualified Element name.
- Parameter:
te- the TypeElement to check.- Gibt zurück:
- the class name
-
isGeneratedDoc
Return true if the TypeElement element is getting documented, depending upon -nodeprecated option and the deprecation information.Return true if -nodeprecated is not used. Return false if -nodeprecated is used and if either TypeElement element is deprecated or the containing package is deprecated.
- Parameter:
te- the TypeElement for which the page generation is checked- Gibt zurück:
- true if it is a generated doc.
-
getWriterFactory
Return the doclet specific instance of a writer factory.- Gibt zurück:
- the
WriterFactoryfor the doclet.
-
getLocale
Return the Locale for this document.- Gibt zurück:
- the current locale
-
getOverviewPath
Return the path of the overview file and null if it does not exist.- Gibt zurück:
- the path of the overview file.
-
getFileManager
Return the current file manager.- Gibt zurück:
- JavaFileManager
-
isAllowScriptInComments
Returns whether or not to allow JavaScript in comments.Default is off; can be set true from a command-line option.
- Gibt zurück:
- the allowScriptInComments
-
getVisibleMemberTable
-
isJavaFXMode
Determines if JavaFX is available in the compilation environment.- Gibt zurück:
- true if JavaFX is available
-
runDocLint
-
initDocLint
Initializes DocLint, if appropriate, depending on options derived from the doclet command-line options, and the set of custom tags that should be ignored by DocLint.DocLint is not enabled if the option -Xmsgs:none is given, and it is not followed by any options to enable any groups. Note that arguments for -Xmsgs: can be given individually in separate -Xmsgs: options, or in a comma-separated list for a single option. For example, the following are equivalent:
- -Xmsgs:all -Xmsgs:-html
- -Xmsgs:all,-html
- Parameter:
opts- options for DocLint, derived from the corresponding doclet command-line optionscustomTagNames- the names of custom tags, to be ignored by doclint
-
isDocLintReferenceGroupEnabled
-
isDocLintSyntaxGroupEnabled
-