|
|||||||||
| 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.ClassBuilder
public class ClassBuilder
Builds the summary for a given class. 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 being documented. |
private boolean |
isEnum
Keep track of whether or not this classdoc is an enum. |
private boolean |
isInterface
Keep track of whether or not this classdoc is an interface. |
static java.lang.String |
ROOT
The root element of the class XML is "ClassDoc". |
private ClassWriter |
writer
The doclet specific writer. |
| Fields inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder |
|---|
configuration, containingPackagesSeen, DEBUG |
| Constructor Summary | |
|---|---|
private |
ClassBuilder(Configuration configuration)
Construct a new ClassBuilder. |
| Method Summary | |
|---|---|
void |
build()
Build the documentation. |
void |
buildClassDescription()
Build the class description. |
void |
buildClassDoc(java.util.List<?> elements)
Handles the <ClassDoc> tag. |
void |
buildClassFooter()
Build the footer of the page. |
void |
buildClassHeader()
Build the header of the page. |
void |
buildClassSignature()
Build the signature of the current class. |
void |
buildClassTagInfo()
Build the tag information for the current class. |
void |
buildClassTree()
Build the class tree documentation. |
void |
buildConstructorDetails(java.util.List<?> elements)
Build the constructor documentation. |
void |
buildDeprecationInfo()
If this class is deprecated, print the appropriate information. |
void |
buildEnumConstantsDetails(java.util.List<?> elements)
Build the enum constants documentation. |
void |
buildFieldDetails(java.util.List<?> elements)
Build the field documentation. |
void |
buildImplementedInterfacesInfo()
If this is a class, list all interfaces implemented by this class. |
void |
buildInterfaceUsageInfo()
If this is an interface, list all classes that implement this interface. |
void |
buildMemberSummary(java.util.List<?> elements)
Build the contents of the page. |
void |
buildMethodDetails(java.util.List<?> elements)
Build the method documentation. |
void |
buildNestedClassInfo()
If this is an inner class or interface, list the enclosing class or interface. |
void |
buildSubClassInfo()
List all the classes extend this one. |
void |
buildSubInterfacesInfo()
List all the interfaces that extend this one. |
void |
buildSuperInterfacesInfo()
If this is an interface, list all super interfaces. |
void |
buildTypeParamInfo()
List the parameters of this class. |
private void |
copyDocFiles()
Copy the doc files for the current ClassDoc if necessary. |
static ClassBuilder |
getInstance(Configuration configuration,
ClassDoc classDoc,
ClassWriter writer)
Construct a new ClassBuilder. |
java.lang.String |
getName()
Return the name of this builder. |
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. |
| 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
private ClassDoc classDoc
private ClassWriter writer
private boolean isInterface
private boolean isEnum
| Constructor Detail |
|---|
private ClassBuilder(Configuration configuration)
configuration - the current configuration of the
doclet.| Method Detail |
|---|
public static ClassBuilder getInstance(Configuration configuration,
ClassDoc classDoc,
ClassWriter writer)
throws java.lang.Exception
configuration - the current configuration of the doclet.classDoc - the class being documented.writer - the doclet specific writer.
java.lang.Exception
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 buildClassDoc(java.util.List<?> elements)
throws java.lang.Exception
elements - the XML elements that specify how to document a class.
java.lang.Exceptionprivate void copyDocFiles()
public void buildClassHeader()
public void buildClassTree()
public void buildImplementedInterfacesInfo()
public void buildSuperInterfacesInfo()
public void buildTypeParamInfo()
public void buildSubClassInfo()
public void buildSubInterfacesInfo()
public void buildInterfaceUsageInfo()
public void buildNestedClassInfo()
public void buildDeprecationInfo()
public void buildClassSignature()
public void buildClassDescription()
public void buildClassTagInfo()
public void buildMemberSummary(java.util.List<?> elements)
throws java.lang.Exception
elements - the XML elements that specify how a member summary is
documented.
java.lang.Exception
public void buildEnumConstantsDetails(java.util.List<?> elements)
throws java.lang.Exception
elements - the XML elements that specify how a enum constants are
documented.
java.lang.Exception
public void buildFieldDetails(java.util.List<?> elements)
throws java.lang.Exception
elements - the XML elements that specify how a field is documented.
java.lang.Exception
public void buildConstructorDetails(java.util.List<?> elements)
throws java.lang.Exception
elements - the XML elements that specify how to document a
constructor.
java.lang.Exception
public void buildMethodDetails(java.util.List<?> elements)
throws java.lang.Exception
elements - the XML elements that specify how a method is documented.
java.lang.Exceptionpublic void buildClassFooter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||