public class ConstructorDocumentation extends ParameterizedDocumentation
| Modifier and Type | Field and Description |
|---|---|
static ConstructorDocumentation |
NULL
Null object for the class
|
exceptions, parametersdeprecated, description, name, type, typeClass| Constructor and Description |
|---|
ConstructorDocumentation(java.lang.Class<?> typeClass,
java.lang.String type,
java.lang.String name,
java.lang.String description,
java.util.List<VariableDocumentation> parameters,
java.util.Set<ThrownExceptionDocumentation> exceptions,
java.lang.reflect.Constructor constructor)
Builds the documentation for a constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.reflect.Constructor |
getConstructor()
Returns the documented constructor, or null if unknown
|
boolean |
setConstructor(java.lang.reflect.Constructor constructor)
Sets the documented constructor.
|
equals, getExceptions, getParameters, getParameterTypes, hashCode, toStringgetDescription, getName, getNonNullDescription, getType, getTypeClass, isDeprecated, setDeprecated@NotNull public static final ConstructorDocumentation NULL
public ConstructorDocumentation(@Nullable java.lang.Class<?> typeClass, @NotNull java.lang.String type, @NotNull java.lang.String name, @Nullable java.lang.String description, @NotNull java.util.List<VariableDocumentation> parameters, @NotNull java.util.Set<ThrownExceptionDocumentation> exceptions, @Nullable java.lang.reflect.Constructor constructor)
typeClass - The actual class of the constructed object if knowntype - The return type (should be the same as the name)name - The name of the constructordescription - The description of the constructorparameters - A list of parameters taken by the constructorexceptions - A list of exceptions thrown by the constructorconstructor - The constructor that is being documented@Nullable public java.lang.reflect.Constructor getConstructor()
public boolean setConstructor(@Nullable java.lang.reflect.Constructor constructor)
constructor - The documented constructor