|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder
com.sun.tools.doclets.internal.toolkit.builders.ConstantsSummaryBuilder
public class ConstantsSummaryBuilder
Builds the Constants Summary Page. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
| Nested Class Summary | |
|---|---|
private class |
ConstantsSummaryBuilder.ConstantFieldBuilder
Print the table of constants. |
| Field Summary | |
|---|---|
protected java.util.Set<ClassDoc> |
classDocsWithConstFields
The set of ClassDocs that have constant fields. |
private ClassDoc |
currentClass
The current class being documented. |
private PackageDoc |
currentPackage
The current package being documented. |
static int |
MAX_CONSTANT_VALUE_INDEX_LENGTH
The maximum number of package directories shown in the constant value index. |
protected java.util.Set<java.lang.String> |
printedPackageHeaders
The set of printed package headers. |
static java.lang.String |
ROOT
The root element of the constant summary XML is "ConstantSummary". |
protected ConstantsSummaryWriter |
writer
The writer used to write the results. |
| Fields inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder |
|---|
configuration, containingPackagesSeen, DEBUG |
| Constructor Summary | |
|---|---|
private |
ConstantsSummaryBuilder(Configuration configuration)
Construct a new ConstantsSummaryBuilder. |
| Method Summary | |
|---|---|
void |
build()
Build the documentation. |
void |
buildClassConstantSummary(java.util.List<?> elements)
Build the summary for the current class. |
void |
buildClassFooter()
Build the footer for the given class. |
void |
buildClassHeader()
Build the header for the given class. |
void |
buildConstantMembers()
Print summary of constant members in the class. |
void |
buildConstantSummaries(java.util.List<?> elements)
Build the summary for each documented package. |
void |
buildConstantSummary(java.util.List<?> elements)
Build the constant summary. |
void |
buildContents()
Build the table of contents. |
void |
buildFooter()
Build the footer. |
void |
buildHeader()
Build the header. |
void |
buildPackageConstantSummary(java.util.List<?> elements)
Build the summary for the current package. |
void |
buildPackageHeader()
Build the header for the given class. |
static ConstantsSummaryBuilder |
getInstance(Configuration configuration,
ConstantsSummaryWriter writer)
Construct a ConstantsSummaryBuilder. |
java.lang.String |
getName()
Return the name of this builder. |
private boolean |
hasConstantField(ClassDoc classDoc)
Return true if the given class has constant fields to document. |
private boolean |
hasConstantField(PackageDoc pkg)
Return true if the given package has constant fields to document. |
private boolean |
hasPrintedPackageIndex(java.lang.String pkgname)
Return true if the given package name has been printed. |
void |
invokeMethod(java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.Object[] params)
Given the name and parameters, invoke the method in the builder. |
private java.lang.String |
parsePackageName(java.lang.String pkgname)
Parse the package name. |
| Methods inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder |
|---|
build |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROOT
public static final int MAX_CONSTANT_VALUE_INDEX_LENGTH
protected ConstantsSummaryWriter writer
protected java.util.Set<ClassDoc> classDocsWithConstFields
protected java.util.Set<java.lang.String> printedPackageHeaders
private PackageDoc currentPackage
private ClassDoc currentClass
| Constructor Detail |
|---|
private ConstantsSummaryBuilder(Configuration configuration)
configuration - the current configuration of the
doclet.| Method Detail |
|---|
public static ConstantsSummaryBuilder getInstance(Configuration configuration,
ConstantsSummaryWriter writer)
configuration - the configuration used in this run
of the doclet.writer - the writer for the summary.
public void invokeMethod(java.lang.String methodName,
java.lang.Class<?>[] paramClasses,
java.lang.Object[] params)
throws java.lang.Exception
invokeMethod in class AbstractBuildermethodName - the name of the method that we would like to invoke.paramClasses - the types for each parameter.params - the parameters of the method.
java.lang.Exception
public void build()
throws java.io.IOException
build in class AbstractBuilderjava.io.IOException - there was a problem writing the output.public java.lang.String getName()
getName in class AbstractBuilder
public void buildConstantSummary(java.util.List<?> elements)
throws java.lang.Exception
elements - the list of elements describing constant summary
documentation.
java.lang.Exceptionpublic void buildHeader()
public void buildFooter()
public void buildContents()
public void buildConstantSummaries(java.util.List<?> elements)
elements - the XML elements that represent the components
of documentation for each package.public void buildPackageConstantSummary(java.util.List<?> elements)
elements - the list of XML elements that make up package
documentation.public void buildClassConstantSummary(java.util.List<?> elements)
elements - the list of XML elements that make up the class
constant summary.public void buildPackageHeader()
public void buildClassHeader()
public void buildConstantMembers()
public void buildClassFooter()
private boolean hasConstantField(PackageDoc pkg)
pkg - the package being checked.
private boolean hasConstantField(ClassDoc classDoc)
classDoc - the class being checked.
private boolean hasPrintedPackageIndex(java.lang.String pkgname)
pkgname - the name of the package to check.private java.lang.String parsePackageName(java.lang.String pkgname)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||