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

public Class TreeWriter

extends AbstractTreeWriter
Class Inheritance
Imports
java.util.SortedSet, javax.lang.model.element.PackageElement, jdk.javadoc.internal.doclets.formats.html.Navigation.PageMode, jdk.javadoc.internal.doclets.formats.html.markup.BodyContents, .HtmlStyles, jdk.javadoc.internal.doclets.toolkit.util.ClassTree, .DocFileIOException, .DocPath, .DocPaths, jdk.javadoc.internal.html.Content, .ContentBuilder, .HtmlTree

Generate Class Hierarchy page for all the Classes in this run. Use ClassTree for building the Tree. The name of the generated file is "overview-tree.html" and it is generated in the current or the destination directory.

Field Summary

Modifier and TypeField and Description
protected BodyContents
private final boolean
classesOnly

True if there are no packages specified on the command line, False otherwise.

pack-priv SortedSet<PackageElement>
packages

Packages in this run.

Inherited from jdk.javadoc.internal.doclets.formats.html.AbstractTreeWriter:
classTree

Constructor Summary

AccessConstructor and Description
public
TreeWriter(HtmlConfiguration
the current configuration of the doclet
configuration
,
ClassTree
the tree being built.
classTree
)

Constructor to construct TreeWriter object.

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.

private HtmlTree

Returns:

a new HTML BODY element
getBody
()

Returns a new HTML BODY element.

private boolean
Inherited from jdk.javadoc.internal.doclets.formats.html.AbstractTreeWriter:
addExtendsImplementsaddLevelInfoaddPartialInfoaddTree

Field Detail

bodyContentsback to summary
protected BodyContents bodyContents
classesOnlyback to summary
private final boolean classesOnly

True if there are no packages specified on the command line, False otherwise.

packagesback to summary
pack-priv SortedSet<PackageElement> packages

Packages in this run.

Constructor Detail

TreeWriterback to summary
public TreeWriter(HtmlConfiguration configuration, ClassTree classTree)

Constructor to construct TreeWriter object.

Parameters
configuration:HtmlConfiguration

the current configuration of the doclet

classTree:ClassTree

the tree being built.

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
getBodyback to summary
private HtmlTree getBody()

Returns a new HTML BODY element.

Returns:HtmlTree

a new HTML BODY element

isUnnamedPackageback to summary
private boolean isUnnamedPackage()