| Modifier and Type | Class and Description |
|---|---|
| private class | ConstantsSummaryWriter.
Builder for the table of fields with constant values. |
| Modifier and Type | Field and Description |
|---|---|
| private final BodyContents | |
| private final TableHeader | |
| private TypeElement | |
| private PackageElement | |
| private TypeElement | currentTypeElement
The current class being documented. |
| private boolean | |
| private static final int | MAX_CONSTANT_VALUE_INDEX_LENGTH
The maximum number of package directories shown in the headings of the constant values contents list and headings. |
| protected final Set | packageGroupHeadings
The set of package-group headings. |
| private HtmlTree | summarySection
The HTML tree for constant values summary currently being written. |
| protected final Set | typeElementsWithConstFields
The set of type elements that have constant fields. |
| Access | Constructor and Description |
|---|---|
| public | ConstantsSummaryWriter(HtmlConfiguration
the configuration used in this run
of the standard doclet. configuration)Construct a ConstantsSummaryWriter. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| protected void | |
| protected void | buildConstantMembers(Content
the content to which the table of constant members will be added target)Builds the summary of constant members in the class. |
| protected void | |
| protected void | |
| protected void | buildContents()
Builds the list of contents for the groups of packages appearing in the constants summary page. |
| protected void | buildPackageHeader(Content
the content to which the package header will be added target)Builds the header for the given package. |
| public void | buildPage()
Implements abstract jdk. The top-level method to generate and write the page represented by this writer. |
| public String | Returns: the abbreviated name for a package, containing the leading segments of the namethe package pkg)Returns the abbreviated name for a package, containing the leading segments of the name. |
| pack-priv Content | |
| pack-priv Content | |
| pack-priv Content | |
| private Content | Returns: the name column of the constant table rowthe field to be documented. member)Get the name column for the constant summary table row. |
| private Content | Returns: the type column of the constant table rowthe field to be documented. member)Get the type column for the constant summary table row. |
| private Content | Returns: the value column of the constant table rowthe field to be documented. member)Get the value column for the constant summary table row. |
| private boolean | Returns: true if the given package has constant fields to documentthe package to be checked pkg)Returns true if the given package has constant fields to document. |
| private boolean | Returns: true if the given class has constant fields to documentthe class to be checked typeElement)Returns true if the given class has constant fields to document. |
| pack-priv void |
| bodyContents | back to summary |
|---|---|
| private final BodyContents bodyContents | |
| constantsTableHeader | back to summary |
|---|---|
| private final TableHeader constantsTableHeader | |
| currentClass | back to summary |
|---|---|
| private TypeElement currentClass | |
| currentPackage | back to summary |
|---|---|
| private PackageElement currentPackage | |
| currentTypeElement | back to summary |
|---|---|
| private TypeElement currentTypeElement The current class being documented. | |
| hasConstants | back to summary |
|---|---|
| private boolean hasConstants | |
| MAX_CONSTANT_VALUE_INDEX_LENGTH | back to summary |
|---|---|
| private static final int MAX_CONSTANT_VALUE_INDEX_LENGTH The maximum number of package directories shown in the headings of the constant values contents list and headings. | |
| packageGroupHeadings | back to summary |
|---|---|
| protected final Set<String> packageGroupHeadings The set of package-group headings. | |
| summarySection | back to summary |
|---|---|
| private HtmlTree summarySection The HTML tree for constant values summary currently being written. | |
| typeElementsWithConstFields | back to summary |
|---|---|
| protected final Set<TypeElement> typeElementsWithConstFields The set of type elements that have constant fields. | |
| ConstantsSummaryWriter | back to summary |
|---|---|
| public ConstantsSummaryWriter(HtmlConfiguration configuration) Construct a ConstantsSummaryWriter.
| |
| addClassConstant | back to summary |
|---|---|
| pack-priv void addClassConstant(Content fromClassConstant) | |
| addConstantMembers | back to summary |
|---|---|
| pack-priv void addConstantMembers(TypeElement typeElement, Collection<VariableElement> fields, Content target) | |
| addConstantSummaries | back to summary |
|---|---|
| pack-priv void addConstantSummaries(Content content) | |
| addFooter | back to summary |
|---|---|
| pack-priv void addFooter() | |
| addLinkToTableOfContents | back to summary |
|---|---|
| pack-priv void addLinkToTableOfContents(String abbrevPackageName) | |
| addPackageGroup | back to summary |
|---|---|
| pack-priv void addPackageGroup(String abbrevPackageName, Content toContent) | |
| buildClassConstantSummary | back to summary |
|---|---|
| protected void buildClassConstantSummary() Builds the summary for the current class. | |
| buildConstantMembers | back to summary |
|---|---|
| protected void buildConstantMembers(Content target) Builds the summary of constant members in the class.
| |
| buildConstantSummaries | back to summary |
|---|---|
| protected void buildConstantSummaries() Builds the summary for each documented package. | |
| buildConstantSummary | back to summary |
|---|---|
| protected void buildConstantSummary() throws DocletException Builds the constant summary page.
| |
| buildContents | back to summary |
|---|---|
| protected void buildContents() Builds the list of contents for the groups of packages appearing in the constants summary page. | |
| buildPackageHeader | back to summary |
|---|---|
| protected void buildPackageHeader(Content target) Builds the header for the given package.
| |
| buildPage | back to summary |
|---|---|
| public void buildPage() throws DocletException Implements abstract jdk. Doc from jdk. The top-level method to generate and write the page represented by this writer.
| |
| getAbbrevPackageName | back to summary |
|---|---|
| public String getAbbrevPackageName(PackageElement pkg) Returns the abbreviated name for a package, containing the leading segments of the name.
| |
| getClassConstantHeader | back to summary |
|---|---|
| pack-priv Content getClassConstantHeader() | |
| getContentsHeader | back to summary |
|---|---|
| pack-priv Content getContentsHeader() | |
| getHeader | back to summary |
|---|---|
| pack-priv Content getHeader() | |
| getNameColumn | back to summary |
|---|---|
| private Content getNameColumn(VariableElement member) Get the name column for the constant summary table row.
| |
| getTypeColumn | back to summary |
|---|---|
| private Content getTypeColumn(VariableElement member) Get the type column for the constant summary table row.
| |
| getValue | back to summary |
|---|---|
| private Content getValue(VariableElement member) Get the value column for the constant summary table row.
| |
| hasConstantField | back to summary |
|---|---|
| private boolean hasConstantField(PackageElement pkg) Returns true if the given package has constant fields to document.
| |
| hasConstantField | back to summary |
|---|---|
| private boolean hasConstantField(TypeElement typeElement) Returns true if the given class has constant fields to document.
| |
| printDocument | back to summary |
|---|---|
| pack-priv void printDocument(Content content) throws DocFileIOException | |
| Modifier and Type | Field and Description |
|---|---|
| protected TypeElement | typeElement
The type element that we are examining constants for. |
| Access | Constructor and Description |
|---|---|
| public | ConstantFieldBuilder(TypeElement
the type element that we are examining constants for typeElement)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| protected void | buildMembersSummary(Content
the content to which the table of class constants will be added target)Builds the table of constants for a given class. |
| protected SortedSet | Returns: a set of visible constant fields for the given typeReturns a set of visible constant fields for the given type. |
| typeElement | back to summary |
|---|---|
| protected TypeElement typeElement The type element that we are examining constants for. | |
| ConstantFieldBuilder | back to summary |
|---|---|
| public ConstantFieldBuilder(TypeElement typeElement) Constructs a
| |
| buildMembersSummary | back to summary |
|---|---|
| protected void buildMembersSummary(Content target) Builds the table of constants for a given class.
| |
| members | back to summary |
|---|---|
| protected SortedSet Returns a set of visible constant fields for the given type.
| |