public class ClassDocumentation extends Documentation
| Modifier and Type | Field and Description |
|---|---|
static ClassDocumentation |
NULL
Null object for the class
|
deprecated, name, type, typeClass| Constructor and Description |
|---|
ClassDocumentation(java.lang.Class documentedClass)
Creates the documentation for the given class
|
ClassDocumentation(java.lang.Class documentedClass,
java.lang.String description)
Creates the documentation for the given class
|
ClassDocumentation(java.lang.String name,
java.lang.String description,
java.lang.Class documentedClass)
Creates the documentation for the given class
|
| Modifier and Type | Method and Description |
|---|---|
void |
addConstructorDocumentation(ConstructorDocumentation documentation)
Adds the documentation for the given constructor
|
void |
addFieldDocumentation(VariableDocumentation documentation)
Adds the documentation for the given constructor
|
void |
addMethodDocumentation(MethodDocumentation documentation)
Adds the documentation for the given method
|
boolean |
equals(java.lang.Object o) |
ConstructorDocumentation |
getConstructorDocumentation(java.lang.reflect.Constructor constructor)
Returns the documentation for the given constructor, or
ConstructorDocumentation.NULL if no documentation is found |
java.util.Set<ConstructorDocumentation> |
getConstructors()
Returns the constructors documented in this class
|
java.lang.Class |
getDocumentedClass()
Returns the class this documents, or null if it doesn't document any class
|
VariableDocumentation |
getFieldDocumentation(java.lang.reflect.Field field)
Returns the documentation for the given field, or
VariableDocumentation.NULL if no documentation is found |
java.util.Set<VariableDocumentation> |
getFields()
Returns the fields documented in this class
|
MethodDocumentation |
getMethodDocumentation(java.lang.reflect.Method method)
Returns the documentation for the given method, or
MethodDocumentation.NULL if no documentation is found |
java.util.Set<MethodDocumentation> |
getMethods()
Returns the methods documented in this class
|
int |
hashCode() |
getDescription, getName, getNonNullDescription, getType, getTypeClass, isDeprecated, setDeprecated, toString@NotNull public static final ClassDocumentation NULL
public ClassDocumentation(@NotNull java.lang.Class documentedClass)
documentedClass - The class this documentation representspublic ClassDocumentation(@NotNull java.lang.Class documentedClass, @Nullable java.lang.String description)
documentedClass - The class this documentation representsdescription - The class description, as HTMLpublic ClassDocumentation(@NotNull java.lang.String name, @Nullable java.lang.String description, @Nullable java.lang.Class documentedClass)
name - The name to use for this documentationdescription - The class description, as HTMLdocumentedClass - The class this documentation represents@NotNull public MethodDocumentation getMethodDocumentation(java.lang.reflect.Method method)
MethodDocumentation.NULL if no documentation is foundmethod - The method to get documentation for@NotNull public VariableDocumentation getFieldDocumentation(java.lang.reflect.Field field)
VariableDocumentation.NULL if no documentation is foundfield - The field to get documentation for@NotNull public ConstructorDocumentation getConstructorDocumentation(java.lang.reflect.Constructor constructor)
ConstructorDocumentation.NULL if no documentation is foundconstructor - The method to get documentation forpublic void addMethodDocumentation(@NotNull MethodDocumentation documentation)
documentation - The documentation to addpublic void addConstructorDocumentation(@NotNull ConstructorDocumentation documentation)
documentation - The documentation to constructorpublic void addFieldDocumentation(@NotNull VariableDocumentation documentation)
documentation - The documentation to constructor@NotNull public java.util.Set<VariableDocumentation> getFields()
@NotNull public java.util.Set<ConstructorDocumentation> getConstructors()
@NotNull public java.util.Set<MethodDocumentation> getMethods()
@Nullable public java.lang.Class getDocumentedClass()
public boolean equals(java.lang.Object o)
equals in class Documentationpublic int hashCode()
hashCode in class Documentation