public class MethodDocumentation extends ParameterizedDocumentation
| Modifier and Type | Field and Description |
|---|---|
static MethodDocumentation |
NULL
Null object for the class
|
exceptions, parametersdeprecated, description, name, type, typeClass| Constructor and Description |
|---|
MethodDocumentation(java.lang.Class<?> typeClass,
java.lang.String type,
java.lang.String name,
java.lang.String description,
java.lang.String returnDescription,
java.util.List<VariableDocumentation> parameters,
java.util.Set<ThrownExceptionDocumentation> exceptions,
java.lang.reflect.Method method)
Creates documentation for a method
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
java.lang.reflect.Method |
getMethod()
Returns the documented method, or null if unknown
|
java.lang.String |
getNonNullReturnDescription()
Gets the description of the return value, or if null returns a non-null string
|
java.lang.String |
getReturnDescription()
Gets the description of the return value
|
boolean |
setMethod(java.lang.reflect.Method method)
Sets the documented method.
|
getExceptions, getParameters, getParameterTypes, hashCode, toStringgetDescription, getName, getNonNullDescription, getType, getTypeClass, isDeprecated, setDeprecated@NotNull public static final MethodDocumentation NULL
public MethodDocumentation(@Nullable java.lang.Class<?> typeClass, @NotNull java.lang.String type, @NotNull java.lang.String name, @Nullable java.lang.String description, @Nullable java.lang.String returnDescription, @NotNull java.util.List<VariableDocumentation> parameters, @NotNull java.util.Set<ThrownExceptionDocumentation> exceptions, @Nullable java.lang.reflect.Method method)
typeClass - The actual class of the return type if knowntype - The return type of the methodname - The name of the methoddescription - The description of the methodreturnDescription - A description of the return value of the methodparameters - A list, in order, of the method parameter documentationsexceptions - A set of the exceptions documentations for thrown exceptionsmethod - The method that is being documented@Nullable public java.lang.reflect.Method getMethod()
public boolean setMethod(@Nullable java.lang.reflect.Method method)
method - The documented method@Nullable public java.lang.String getReturnDescription()
@NotNull public java.lang.String getNonNullReturnDescription()
public boolean equals(@Nullable java.lang.Object other)
equals in class ParameterizedDocumentation