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

public Class PackageUseWriter

extends SubWriterHolderWriter
Class Inheritance
Imports
java.util.Set, .SortedMap, .TreeMap, .TreeSet, javax.lang.model.element.PackageElement, .TypeElement, jdk.javadoc.internal.doclets.formats.html.Navigation.PageMode, jdk.javadoc.internal.doclets.formats.html.markup.HtmlStyles, jdk.javadoc.internal.doclets.toolkit.util.ClassUseMapper, .DocFileIOException, .DocPath, .DocPaths, jdk.javadoc.internal.html.Content, .ContentBuilder, .Entity, .HtmlTag, .HtmlTree, .Text

Generate package usage information.

Field Summary

Modifier and TypeField and Description
pack-priv final PackageElement
pack-priv final SortedMap<String, Set<TypeElement>>
Inherited from jdk.javadoc.internal.doclets.formats.html.SubWriterHolderWriter:
bodyContents

Constructor Summary

AccessConstructor and Description
public
PackageUseWriter(HtmlConfiguration
the configuration
configuration
,
ClassUseMapper
a mapper to provide details of where elements are used
mapper
,
PackageElement
the package element to be documented
pkgElement
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
protected void
addClassList(Content
the content to which the class list will be added
content
)

Add the list of classes that use the given package.

protected void
addPackageList(Content
the content to which the package list will be added
content
)

Add the list of packages that use the given package.

protected void
addPackageUse(Content
the content to which the package use information will be added
content
)

Add the package use information.

public void
buildPage()

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

Generate the package use list.

private HtmlTree

Returns:

the package use HTML BODY element
getBody
()

Returns the package use HTML BODY element.

private static DocPath
pathFor(HtmlConfiguration configuration, PackageElement packageElement)

Inherited from jdk.javadoc.internal.doclets.formats.html.SubWriterHolderWriter:
addClassContentaddIndexCommentaddIndexCommentaddInheritedMemberSummaryaddInheritedSummaryHeaderaddSummaryaddSummaryHeaderaddSummaryLinkCommentaddSummaryLinkCommentgetContentHeadergetDetailsListgetDetailsListItemgetMembergetMembergetMemberInheritedgetMemberListgetMemberListItemgetMemberSummarygetPropertyHelpergetSummariesListgetSummariesListItem

Field Detail

packageElementback to summary
pack-priv final PackageElement packageElement
usingPackageToUsedClassesback to summary
pack-priv final SortedMap<String, Set<TypeElement>> usingPackageToUsedClasses

Constructor Detail

PackageUseWriterback to summary
public PackageUseWriter(HtmlConfiguration configuration, ClassUseMapper mapper, PackageElement pkgElement)

Constructor.

Parameters
configuration:HtmlConfiguration

the configuration

mapper:ClassUseMapper

a mapper to provide details of where elements are used

pkgElement:PackageElement

the package element to be documented

Method Detail

addClassListback to summary
protected void addClassList(Content content)

Add the list of classes that use the given package.

Parameters
content:Content

the content to which the class list will be added

addPackageListback to summary
protected void addPackageList(Content content)

Add the list of packages that use the given package.

Parameters
content:Content

the content to which the package list will be added

addPackageUseback to summary
protected void addPackageUse(Content content)

Add the package use information.

Parameters
content:Content

the content to which the package use information will be added

buildPageback to summary
public void buildPage() throws DocFileIOException

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

Generate the package use list.

Annotations
@Override
Exceptions
DocFileIOException:
if there is a problem generating the package use page
getBodyback to summary
private HtmlTree getBody()

Returns the package use HTML BODY element.

Returns:HtmlTree

the package use HTML BODY element

pathForback to summary
private static DocPath pathFor(HtmlConfiguration configuration, PackageElement packageElement)