|
|||||||||
| 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.SerializedFormBuilder
public class SerializedFormBuilder
Builds the serialized form. 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 |
currentClass
The current class being documented. |
protected MemberDoc |
currentMember
The current member being documented. |
private PackageDoc |
currentPackage
The current package being documented. |
private SerializedFormWriter.SerialFieldWriter |
fieldWriter
The writer for serializable fields. |
private SerializedFormWriter.SerialMethodWriter |
methodWriter
The writer for serializable method documentation. |
static java.lang.String |
NAME
The root element of the serialized form XML is "SerializedForm". |
private static java.lang.String |
SERIAL_VERSION_UID_HEADER
The header for the serial version UID. |
private SerializedFormWriter |
writer
The writer for this builder. |
| Fields inherited from class com.sun.tools.doclets.internal.toolkit.builders.AbstractBuilder |
|---|
configuration, containingPackagesSeen, DEBUG |
| Constructor Summary | |
|---|---|
private |
SerializedFormBuilder(Configuration configuration)
|
| Method Summary | |
|---|---|
void |
build()
Build the serialized form. |
void |
buildClassHeader()
|
void |
buildClassSerializedForm(java.util.List<?> elements)
|
void |
buildDeprecatedMethodInfo()
Build the deprecated method description. |
void |
buildFieldFooter()
Build the field footer. |
void |
buildFieldHeader()
Build the field header. |
void |
buildFieldInfo()
Build the field information. |
void |
buildFieldSerializationOverview(ClassDoc classDoc)
If possible, build the serialization overview for the given class. |
void |
buildFieldSubHeader()
Build the field sub header. |
void |
buildFooter()
Build the footer. |
void |
buildHeader()
Build the header. |
void |
buildMethodDescription()
Build method tags. |
void |
buildMethodFooter()
Build the method footer. |
void |
buildMethodHeader()
Build the method header. |
void |
buildMethodInfo(java.util.List<?> elements)
build the information for the method. |
void |
buildMethodSubHeader()
Build the method sub header. |
void |
buildMethodTags()
Build the method tags. |
void |
buildPackageHeader()
|
void |
buildPackageSerializedForm(java.util.List<?> elements)
Build the package serialized for for the current package being processed. |
void |
buildSerializableFields(java.util.List<?> elements)
Build the summaries for the fields that belong to the given class. |
void |
buildSerializableMethods(java.util.List<?> elements)
Build the summaries for the methods that belong to the given class. |
void |
buildSerializedForm(java.util.List<?> elements)
Build the serialized form. |
void |
buildSerializedFormSummaries(java.util.List<?> elements)
Build the contents. |
void |
buildSerialUIDInfo()
Build the serial UID information for the given class. |
static SerializedFormBuilder |
getInstance(Configuration configuration)
Construct a new SerializedFormBuilder. |
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. |
private boolean |
serialClassFoundToDocument(ClassDoc[] classes)
Return true if any of the given classes have a @serialinclude tag. |
private static boolean |
serialClassInclude(ClassDoc cd)
Return true if the given ClassDoc should be included in the serialized form. |
private static boolean |
serialDocInclude(Doc doc)
Return true if the given Doc should be included in the serialized form. |
static boolean |
serialInclude(Doc doc)
Return true if the given Doc should be included in the serialized form. |
| 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 NAME
private SerializedFormWriter writer
private SerializedFormWriter.SerialFieldWriter fieldWriter
private SerializedFormWriter.SerialMethodWriter methodWriter
private static final java.lang.String SERIAL_VERSION_UID_HEADER
private PackageDoc currentPackage
private ClassDoc currentClass
protected MemberDoc currentMember
| Constructor Detail |
|---|
private SerializedFormBuilder(Configuration configuration)
| Method Detail |
|---|
public static SerializedFormBuilder getInstance(Configuration configuration)
configuration - the current configuration of the doclet.
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 buildSerializedForm(java.util.List<?> elements)
throws java.lang.Exception
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.Exceptionpublic void buildHeader()
public void buildSerializedFormSummaries(java.util.List<?> elements)
public void buildPackageSerializedForm(java.util.List<?> elements)
public void buildPackageHeader()
public void buildClassSerializedForm(java.util.List<?> elements)
public void buildClassHeader()
public void buildSerialUIDInfo()
public void buildFooter()
public static boolean serialInclude(Doc doc)
doc - the Doc object to check for serializability.private static boolean serialClassInclude(ClassDoc cd)
cd - the ClassDoc object to check for serializability.private static boolean serialDocInclude(Doc doc)
doc - the Doc object to check for serializability.private boolean serialClassFoundToDocument(ClassDoc[] classes)
classes - the classes to check.
public void buildMethodHeader()
public void buildMethodSubHeader()
public void buildDeprecatedMethodInfo()
public void buildMethodDescription()
public void buildMethodTags()
public void buildMethodInfo(java.util.List<?> elements)
public void buildMethodFooter()
public void buildFieldHeader()
public void buildFieldSerializationOverview(ClassDoc classDoc)
classDoc - the class to print the overview for.public void buildFieldSubHeader()
public void buildFieldInfo()
public void buildFieldFooter()
public void buildSerializableMethods(java.util.List<?> elements)
public void buildSerializableFields(java.util.List<?> elements)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||