APIdia Launch Partner
Top Description Inners Fields Constructors Methods
jdk.javadoc.internal.doclets.formats.html

public Class DocFilesHandler

extends Object
Class Inheritance
Imports
java.net.URI, .URISyntaxException, java.util.ArrayList, .List, javax.lang.model.element.Element, .ModuleElement, .PackageElement, javax.tools.JavaFileManager.Location, com.sun.source.doctree.DocTree, .EndElementTree, .StartElementTree, com.sun.source.util.DocTreeFactory, jdk.javadoc.internal.doclets.formats.html.Navigation.PageMode, jdk.javadoc.internal.doclets.formats.html.markup.BodyContents, jdk.javadoc.internal.doclets.toolkit.DocFileElement, .DocletException, jdk.javadoc.internal.doclets.toolkit.util.DocFile, .DocFileIOException, .DocPath, .DocPaths, .Utils, jdk.javadoc.internal.html.Content, .HtmlTag, .HtmlTree

A class to handle any files, including HTML files, found in the doc-files subdirectory for any given package.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
DocFilesHandler.DocFileWriter

A writer to write out the processed form of an HTML file found in the doc-files subdirectory for a module or package.

Field Summary

Modifier and TypeField and Description
private final HtmlConfiguration
private final Element
private final JavaFileManager.Location
private final HtmlOptions
private final DocPath
private final Utils
private final WriterFactory

Constructor Summary

AccessConstructor and Description
public
DocFilesHandler(HtmlConfiguration
the configuration of this doclet.
configuration
,
Element
the containing element of the doc-files.
element
)

Constructor to construct the DocFilesHandler object.

Method Summary

Modifier and TypeMethod and Description
private void
copyDirectory(DocFile srcdir, final DocPath dstDocPath, boolean first)

public void
copyDocFiles()

Copy doc-files directory and its contents from the source elements directory to the generated documentation directory.

public List<DocPath>
private void
handleDocFile(DocFile srcFile, DocPath dstPath)

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configurationback to summary
private final HtmlConfiguration configuration
elementback to summary
private final Element element
locationback to summary
private final JavaFileManager.Location location
optionsback to summary
private final HtmlOptions options
sourceback to summary
private final DocPath source
utilsback to summary
private final Utils utils
writerFactoryback to summary
private final WriterFactory writerFactory

Constructor Detail

DocFilesHandlerback to summary
public DocFilesHandler(HtmlConfiguration configuration, Element element)

Constructor to construct the DocFilesHandler object.

Parameters
configuration:HtmlConfiguration

the configuration of this doclet.

element:Element

the containing element of the doc-files.

See Also
WriterFactory#newDocFilesHandler(Element)

Method Detail

copyDirectoryback to summary
private void copyDirectory(DocFile srcdir, final DocPath dstDocPath, boolean first) throws DocletException
copyDocFilesback to summary
public void copyDocFiles() throws DocletException

Copy doc-files directory and its contents from the source elements directory to the generated documentation directory.

Exceptions
DocletException:
if there is a problem while copying the documentation files
getStylesheetsback to summary
public List<DocPath> getStylesheets() throws DocFileIOException
handleDocFileback to summary
private void handleDocFile(DocFile srcFile, DocPath dstPath) throws DocletException
isValidFilenameback to summary
private boolean isValidFilename(DocFile f)
jdk.javadoc.internal.doclets.formats.html back to summary

public Class DocFilesHandler.DocFileWriter

extends HtmlDocletWriter
Class Inheritance

A writer to write out the processed form of an HTML file found in the doc-files subdirectory for a module or package.

Field Summary

Modifier and TypeField and Description
private final DocFileElement
Inherited from jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter:
comparatorsconfigurationcontentsdocPathshtmlIdsindexAnchorTablelinksmainBodyScriptmessagesoptionspathpathToRootresourcestableOfContentsutilswinTitle

Constructor Summary

AccessConstructor and Description
public
DocFileWriter(HtmlConfiguration
the configuration of this doclet
configuration
,
DocPath
the file to be generated
path
,
DocFileElement
the element representing the doc file
dfElement
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
buildPage()

Implements abstract jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.buildPage.

The top-level method to generate and write the page represented by this writer.

protected TableOfContents
private List<? extends DocTree>
getLocalHeaderTags(List<? extends DocTree> dtrees)

private String
public boolean
isIndexable()

Overrides jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.isIndexable.

Returns true if the page written by this writer should be indexed, false otherwise.

Inherited from jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter:
addInlineCommentaddInlineCommentaddInlineDeprecatedCommentaddPreQualifiedClassLinkaddPreQualifiedClassLinkaddPreQualifiedStrongClassLinkaddPreviewCommentaddPreviewInfoaddPreviewSummaryaddRestrictedInfoaddRestrictedSummaryaddSrcLinkaddSummaryCommentaddSummaryCommentaddSummaryDeprecatedCommentaddTagsInfocommentTagsToContentcommentTagsToContentcommentTagsToContentgetAnnotationInfogetAnnotationInfogetAnnotationsgetBlockTagOutputgetBlockTagOutputgetBodygetBodyStylegetCrossClassLinkgetCrossModuleLinkgetCrossPackageLinkgetCurrentTypeElementgetDeprecatedPhrasegetDescriptiongetDocLinkgetDocLinkgetDocLinkgetDocLinkgetDocLinkgetEnclosingPackageNamegetFileTitlegetFootergetGeneratorgetHeadergetHeadergetLinkgetLocalizedPackageNamegetLocalStylesheetsgetModuleLinkgetModuleLinkgetNavBargetNavLinkToOverviewTreegetPackageLabelgetPackageLinkgetPackageLinkgetPackageTableHeadergetPreQualifiedClassLinkgetQualifiedClassLinkgetTagletWriterInstancegetTagletWriterInstancegetTypeParameterLinksgetWindowTitlehasSerializationOverviewTagsignoreNonInlineTaginvalidTagOutputpathStringpathStringprintHtmlDocumentprintHtmlDocumentprintHtmlDocumentreplaceDocRootDirresolveExternalSpecURIwriteGenerating

Field Detail

dfElementback to summary
private final DocFileElement dfElement

Constructor Detail

DocFileWriterback to summary
public DocFileWriter(HtmlConfiguration configuration, DocPath path, DocFileElement dfElement)

Constructor.

Parameters
configuration:HtmlConfiguration

the configuration of this doclet

path:DocPath

the file to be generated

dfElement:DocFileElement

the element representing the doc file

Method Detail

buildPageback to summary
public void buildPage() throws DocFileIOException

Implements abstract jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.buildPage.

Doc from jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.buildPage.

The top-level method to generate and write the page represented by this writer.

Annotations
@Override
createTableOfContentsback to summary
protected TableOfContents createTableOfContents()

Overrides jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.createTableOfContents.

Doc from jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.createTableOfContents.

Creates table of contents for this writer. Can be overridden to return null in subclasses that don't require a table of contents.

Annotations
@Override
getLocalHeaderTagsback to summary
private List<? extends DocTree> getLocalHeaderTags(List<? extends DocTree> dtrees)
getWindowTitleback to summary
private String getWindowTitle(HtmlDocletWriter docletWriter, DocFileElement element)
isIndexableback to summary
public boolean isIndexable()

Overrides jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.isIndexable.

Doc from jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.isIndexable.

Returns true if the page written by this writer should be indexed, false otherwise. Some pages merely aggregate filtered information available on other pages and, thus, have no indexing value. In fact, if indexed, they would clutter the index and mislead the reader.

Annotations
@Override