net.cscott.sinjdoc
public interface ClassDoc extends ProgramElementDoc
ClassDoc
interface represents a java class and
raw type and provides access to information about the class, the
class' comment and tags, and the members of the class. A
ClassDoc
only exists if it was processed in this
run of javadoc. References to classes which may or may not have
been processed in this run and parameterized types are referred to
using Type
(components of which can be converted to
ClassDoc
, if possible).
Version: $Id: ClassDoc.java,v 1.5 2003/05/08 03:54:25 cananian Exp $
See Also: com.sun.javadoc.ClassDoc
Method Summary | |
---|---|
List<ConstructorDoc> | constructors()
Return visible constructors in class. |
boolean | definesSerializableFields()
Return true iif serializable fields are explicitly defined with the
special class member serialPersistentFields . |
List<FieldDoc> | fields() Return visible fields in class. |
ClassDoc | findClass(String className)
Find a class within the context of this class. |
List<ClassType> | importedClasses()
Get the list of classes declared as imported. |
List<PackageDoc> | importedPackages()
Get the list of packages declared as imported. |
List<ClassDoc> | innerClasses()
Return visible inner classes within this class, not including
anonymous and local classes. |
List<Type> | interfaces()
Return interfaces implemented by this class of interfaces extended
by this interface. |
boolean | isAbstract() Return true if this class is abstract. |
boolean | isExternalizable() Return true if this class implements
java.io.Externalizable . |
boolean | isSerializable() Return true if this class implements
java.io.Serializable . |
List<MethodDoc> | methods()
Return visible methods in class, not including constructors. |
List<FieldDoc> | serializableFields()
Return the serializable fields of this class.
|
List<MethodDoc> | serializationMethods()
Return the serialization methods for this class. |
boolean | subclassOf(ClassDoc cd)
Test whether this class is a subclass of the specified class. |
Type | superclass()
Return the superclass of this class, or null if there is no
superclass. |
ClassType | type() Return the ClassType corresponding to this
ClassDoc . |
List<ClassTypeVariable> | typeParameters() Return the type variables declared by this class, if it is
generic; otherwise return a zero-length list. |
serialPersistentFields
.See Also: SerialFieldTag
ClassDoc
if found, null if not found.java.io.Externalizable
. Since
java.io.Externalizable
extends
java.io.Serializable
, Externalizable objects are
also Serializable.java.io.Serializable
. Since
java.io.Externalizable
extends
java.io.Serializable
, Externalizable objects are
also Serializable. Return either a list of default fields documented by the
serial
tag or a single FieldDoc
for
the serialPersistentField
member. There should be
a serialField
tag for each serializable field defined
by an ObjectStreamField
array component of
serialPersistentField
.
Returns: an array of FieldDoc
for the serializable fields
of this class.
See Also: SerialFieldTag
Returns: an array of MethodDoc
that represents the
serialization methods for this class.
Parameters: cd the candidate superclass.
Returns: true if cd is a superclass of this class.
ClassType
corresponding to this
ClassDoc
.See Also: ClassType