|
|||||||||
| 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.AbstractMemberBuilder
com.sun.tools.doclets.internal.toolkit.builders.MemberSummaryBuilder
public class MemberSummaryBuilder
Builds the member summary. This code is not part of an API. It is implementation that is subject to change. Do not use it as an API
| Field Summary | |
|---|---|
private ClassDoc |
classDoc
The type being documented. |
private MemberSummaryWriter[] |
memberSummaryWriters
The member summary writers for the given class. |
static java.lang.String |
NAME
The XML root for this builder. |
private VisibleMemberMap[] |
visibleMemberMaps
The visible members for the given class. |
| Fields inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder |
|---|
configuration, containingPackagesSeen, DEBUG |
| Constructor Summary | |
|---|---|
private |
MemberSummaryBuilder(Configuration configuration)
|
| Method Summary | |
|---|---|
void |
buildAnnotationTypeOptionalMemberSummary()
Build the summary for the optional members. |
void |
buildAnnotationTypeRequiredMemberSummary()
Build the summary for the optional members. |
void |
buildConstructorsSummary()
Build the constructor summary. |
void |
buildEnumConstantsSummary()
Build the summary for the enum constants. |
void |
buildFieldsInheritedSummary()
Build the inherited summary for the fields. |
void |
buildFieldsSummary()
Build the summary for the fields. |
private void |
buildInheritedSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap)
Build the inherited member summary for the given methods. |
void |
buildMethodsInheritedSummary()
Build the inherited method summary. |
void |
buildMethodsSummary()
Build the method summary. |
void |
buildNestedClassesInheritedSummary()
Build the inherited summary for the nested classes. |
void |
buildNestedClassesSummary()
Build the summary for the nested classes. |
private void |
buildSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap)
Build the member summary for the given members. |
static MemberSummaryBuilder |
getInstance(AnnotationTypeWriter annotationTypeWriter,
Configuration configuration)
Construct a new MemberSummaryBuilder. |
static MemberSummaryBuilder |
getInstance(ClassWriter classWriter,
Configuration configuration)
Construct a new MemberSummaryBuilder. |
MemberSummaryWriter |
getMemberSummaryWriter(int type)
Return the specified member summary writer. |
java.lang.String |
getName()
Return the name of this builder. |
VisibleMemberMap |
getVisibleMemberMap(int type)
Return the specified visible member map. |
boolean |
hasMembersToDocument()
Return true it there are any members to summarize. |
private void |
init(java.lang.Object writer)
|
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. |
java.util.List<ProgramElementDoc> |
members(int type)
Returns a list of methods that will be documented for the given class. |
| Methods inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractMemberBuilder |
|---|
build, 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 NAME
private VisibleMemberMap[] visibleMemberMaps
private MemberSummaryWriter[] memberSummaryWriters
private ClassDoc classDoc
| Constructor Detail |
|---|
private MemberSummaryBuilder(Configuration configuration)
| Method Detail |
|---|
public static MemberSummaryBuilder getInstance(ClassWriter classWriter,
Configuration configuration)
throws java.lang.Exception
classWriter - the writer for the class whose members are being
summarized.configuration - the current configuration of the doclet.
java.lang.Exception
public static MemberSummaryBuilder getInstance(AnnotationTypeWriter annotationTypeWriter,
Configuration configuration)
throws java.lang.Exception
annotationTypeWriter - the writer for the class whose members are
being summarized.configuration - the current configuration of the doclet.
java.lang.Exception
private void init(java.lang.Object writer)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getName()
getName in class AbstractBuilderpublic VisibleMemberMap getVisibleMemberMap(int type)
type - the type of visible member map to return.
java.lang.ArrayIndexOutOfBoundsException - when the type is invalid.VisibleMemberMappublic MemberSummaryWriter getMemberSummaryWriter(int type)
type - the type of member summary writer to return.
java.lang.ArrayIndexOutOfBoundsException - when the type is invalid.VisibleMemberMappublic java.util.List<ProgramElementDoc> members(int type)
classDoc - the ClassDoc we want to check.type - the type of members to return.
VisibleMemberMap
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.Exceptionpublic boolean hasMembersToDocument()
hasMembersToDocument in class AbstractMemberBuilderpublic void buildEnumConstantsSummary()
public void buildAnnotationTypeOptionalMemberSummary()
public void buildAnnotationTypeRequiredMemberSummary()
public void buildFieldsSummary()
public void buildFieldsInheritedSummary()
public void buildNestedClassesSummary()
public void buildNestedClassesInheritedSummary()
public void buildMethodsSummary()
public void buildMethodsInheritedSummary()
public void buildConstructorsSummary()
private void buildSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap)
writer - the summary writer to write the output.visibleMemberMap - the given members to summarize.
private void buildInheritedSummary(MemberSummaryWriter writer,
VisibleMemberMap visibleMemberMap)
writer - the writer for this member summary.visibleMemberMap - the map for the members to document.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||