Klasse HtmlConfiguration
Also determine the length of the command-line option. For example, for a option "-header" there will be a string argument associated, then the the length of option "-header" is two. But for option "-nohelp" no argument is needed so it's length is 1.
Also do the error checking on the options used. For example it is illegal to use "-helpfile" option when already "-nohelp" option is used.
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
Kinds of conditional pages. -
Feldübersicht
Modifizierer und TypFeldBeschreibungA set of values indicating which conditional pages should be generated.The TypeElement for the class file getting generated.protected DeprecatedAPIListBuilder
The collection of deprecated items, if any, to be displayed on the deprecated-list page, or null if the page should not be generated.final Resources
static final String
Default charset for HTML.protected HtmlIndexBuilder
The collections of items for the main index.protected final Messages
protected NewAPIBuilder
The collection of new API items, if any, to be displayed on the new-list page, or null if the page should not be generated.protected PreviewAPIListBuilder
The collection of preview items, if any, to be displayed on the preview-list page, or null if the page should not be generated.First file to appear in the right-hand frame in the generated documentation.Von Klasse geerbte Felder org.jdrupes.mdoclet.internal.doclets.toolkit.BaseConfiguration
builderFactory, cmtUtils, docEnv, docFileFactory, doclet, extern, group, locale, metakeywords, modulePackages, modules, overviewElement, packages, propertyUtils, reporter, sharedResourceBundleName, showModules, sourcepath, tagletManager, typeElementCatalog, utils, workArounds
-
Konstruktorübersicht
KonstruktorBeschreibungHtmlConfiguration
(Doclet doclet, Locale locale, Reporter reporter) Constructs the full configuration needed by the doclet, including the format-specific part, defined in this class, and the format-independent part, defined in the supertype. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected boolean
boolean
This method should be defined in all those doclets (configurations), which want to derive themselves from this BaseConfiguration.protected boolean
Gibt the date to be recorded in generated files zurück.Returns a utility object providing commonly used fragments of content.Returns the version of thedoclet
.Return the current file manager.Return the Locale for this document.Return the path of the overview file or null if it does not exist.protected TypeElement
getValidClass
(List<TypeElement> classes) Return the doclet specific instance of a writer factory.protected void
initConfiguration
(DocletEnvironment docEnv, Function<String, String> resourceKeyMapper) protected void
Generate “overview.html” page if option “-overview” is used or number of packages is more than one.protected void
Decide the page which will appear first in the right-hand frame.Von Klasse geerbte Methoden org.jdrupes.mdoclet.internal.doclets.toolkit.BaseConfiguration
getBuilderFactory, getClassName, getIncludedModuleElements, getIncludedPackageElements, getIncludedTypeElements, getReporter, getSpecifiedModuleElements, getSpecifiedPackageElements, getSpecifiedTypeElements, getVisibleMemberTable, initDocLint, isAllowScriptInComments, isDocLintReferenceGroupEnabled, isDocLintSyntaxGroupEnabled, isGeneratedDoc, isJavaFXMode, runDocLint, setOptions, shouldExcludeDocFileDir, shouldExcludeQualifier
-
Felddetails
-
HTML_DEFAULT_CHARSET
Default charset for HTML.- Siehe auch:
-
docResources
-
topFile
First file to appear in the right-hand frame in the generated documentation. -
currentTypeElement
The TypeElement for the class file getting generated. -
mainIndex
The collections of items for the main index.This field is only initialized if options.createIndex() is true. This index is populated somewhat lazily:
- items found in doc comments are found while generating declaration pages
- items for elements are added in bulk before generating the index files
- additional items are added as needed
-
deprecatedAPIListBuilder
The collection of deprecated items, if any, to be displayed on the deprecated-list page, or null if the page should not be generated.The page will not be generated if
no deprecated items
are to be included in the documentation, or if the page isnot wanted
, or if there are no deprecated elements being documented. -
previewAPIListBuilder
The collection of preview items, if any, to be displayed on the preview-list page, or null if the page should not be generated.The page will not be generated if there are no preview elements being documented.
-
newAPIPageBuilder
The collection of new API items, if any, to be displayed on the new-list page, or null if the page should not be generated.The page is only generated if the –since option is used with release names matching @since tags in the documented code.
-
contents
-
messages
-
docPaths
-
htmlIds
-
localStylesheetMap
-
conditionalPages
A set of values indicating which conditional pages should be generated.The set is computed lazily, although values must (obviously) be set before they are required, such as when deciding whether to generate links to these files in the navigation bar, on each page, the help file, and so on.
The value for any page may depend on both command-line options to enable or disable a page, and on content being found for the page, such as deprecated items to appear in the summary page of deprecated items.
-
-
Konstruktordetails
-
HtmlConfiguration
Constructs the full configuration needed by the doclet, including the format-specific part, defined in this class, and the format-independent part, defined in the supertype.- Parameter:
doclet
- the doclet for this run of javadoclocale
- the locale for the generated documentationreporter
- the reporter to use for console messages
-
-
Methodendetails
-
initConfiguration
protected void initConfiguration(DocletEnvironment docEnv, Function<String, String> resourceKeyMapper) - Setzt außer Kraft:
initConfiguration
in KlasseBaseConfiguration
-
getDocletVersion
Beschreibung aus Klasse kopiert:BaseConfiguration
Returns the version of thedoclet
.- Angegeben von:
getDocletVersion
in KlasseBaseConfiguration
- Gibt zurück:
- the version
-
getDocResources
- Angegeben von:
getDocResources
in KlasseBaseConfiguration
-
getContents
Returns a utility object providing commonly used fragments of content.- Gibt zurück:
- a utility object providing commonly used fragments of content
-
getMessages
- Angegeben von:
getMessages
in KlasseBaseConfiguration
-
getOptions
- Angegeben von:
getOptions
in KlasseBaseConfiguration
-
finishOptionSettings
Beschreibung aus Klasse kopiert:BaseConfiguration
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.
- Angegeben von:
finishOptionSettings
in KlasseBaseConfiguration
- Gibt zurück:
- true if successful and false otherwise
-
getBuildDate
Gibt the date to be recorded in generated files zurück.- Gibt zurück:
- the date to be recorded in generated files
-
setTopFile
Decide the page which will appear first in the right-hand frame.It will be “overview-summary.html” if “-overview” option is used or no “-overview” but the number of packages is more than one. It will be “package-summary.html” of the respective package if there is only one package to document. It will be a class page(first in the sorted order), if only classes are provided on the command line.
-
getValidClass
-
checkForDeprecation
-
setCreateOverview
Generate “overview.html” page if option “-overview” is used or number of packages is more than one.Sets HtmlOptions.createOverview field to true.
-
getWriterFactory
Beschreibung aus Klasse kopiert:BaseConfiguration
Return the doclet specific instance of a writer factory.- Angegeben von:
getWriterFactory
in KlasseBaseConfiguration
- Gibt zurück:
- the
WriterFactory
for the doclet.
-
getLocale
Beschreibung aus Klasse kopiert:BaseConfiguration
Return the Locale for this document.- Angegeben von:
getLocale
in KlasseBaseConfiguration
- Gibt zurück:
- the current locale
-
getOverviewPath
Return the path of the overview file or null if it does not exist.- Angegeben von:
getOverviewPath
in KlasseBaseConfiguration
- Gibt zurück:
- the path of the overview file or null if it does not exist.
-
getMainStylesheet
-
getAdditionalStylesheets
-
getAdditionalScripts
-
getFileManager
Beschreibung aus Klasse kopiert:BaseConfiguration
Return the current file manager.- Angegeben von:
getFileManager
in KlasseBaseConfiguration
- Gibt zurück:
- JavaFileManager
-
finishOptionSettings0
- Setzt außer Kraft:
finishOptionSettings0
in KlasseBaseConfiguration
- Löst aus:
DocletException
-