|
|||||||||
| 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.ConstructorBuilder
public class ConstructorBuilder
Builds documentation for a constructor. 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 class whose constructors are being documented. |
private java.util.List<ProgramElementDoc> |
constructors
The constructors being documented. |
private int |
currentMethodIndex
The index of the current field that is being documented at this point in time. |
static java.lang.String |
NAME
The name of this builder. |
private VisibleMemberMap |
visibleMemberMap
The visible constructors for the given class. |
private ConstructorWriter |
writer
The writer to output the constructor documentation. |
| Fields inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder |
|---|
configuration, containingPackagesSeen, DEBUG |
| Constructor Summary | |
|---|---|
private |
ConstructorBuilder(Configuration configuration)
Construct a new ConstructorBuilder. |
| Method Summary | |
|---|---|
void |
buildConstructorComments()
Build the comments for the constructor. |
void |
buildConstructorDoc(java.util.List<?> elements)
Build the constructor documentation. |
void |
buildConstructorFooter()
Build the footer for the individual constructor. |
void |
buildConstructorHeader()
Build the header for the individual constructor. |
void |
buildDeprecationInfo()
Build the deprecation information. |
void |
buildFooter()
Build the overall footer. |
void |
buildHeader()
Build the overall header. |
void |
buildSignature()
Build the signature. |
void |
buildTagInfo()
Build the tag information. |
static ConstructorBuilder |
getInstance(Configuration configuration,
ClassDoc classDoc,
ConstructorWriter writer)
Construct a new ConstructorBuilder. |
java.lang.String |
getName()
Return the name of this builder. |
ConstructorWriter |
getWriter()
Return the constructor writer for this builder. |
boolean |
hasMembersToDocument()
Return true if this subbuilder has anything to document. |
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(ClassDoc classDoc)
Returns a list of constructors 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 int currentMethodIndex
private ClassDoc classDoc
private VisibleMemberMap visibleMemberMap
private ConstructorWriter writer
private java.util.List<ProgramElementDoc> constructors
| Constructor Detail |
|---|
private ConstructorBuilder(Configuration configuration)
configuration - the current configuration of the
doclet.| Method Detail |
|---|
public static ConstructorBuilder getInstance(Configuration configuration,
ClassDoc classDoc,
ConstructorWriter writer)
configuration - the current configuration of the doclet.classDoc - the class whoses members are being documented.writer - the doclet specific writer.public java.lang.String getName()
getName in class AbstractBuilderpublic boolean hasMembersToDocument()
hasMembersToDocument in class AbstractMemberBuilder
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 java.util.List<ProgramElementDoc> members(ClassDoc classDoc)
public ConstructorWriter getWriter()
public void buildConstructorDoc(java.util.List<?> elements)
elements - the XML elements that specify how to construct this
documentation.public void buildHeader()
public void buildConstructorHeader()
public void buildSignature()
public void buildDeprecationInfo()
public void buildConstructorComments()
Configuration.nocomment is set to true.
public void buildTagInfo()
public void buildConstructorFooter()
public void buildFooter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||