public class VariableDocumentation extends Documentation
Modifier and Type | Field and Description |
---|---|
static VariableDocumentation |
NULL
Null object for the class
|
deprecated, description, name, type, typeClass
Constructor and Description |
---|
VariableDocumentation(java.lang.Class<?> typeClass,
java.lang.String type,
java.lang.String name,
java.lang.String description,
java.lang.reflect.Parameter parameter,
java.lang.reflect.Field field)
Creates documentation for a variable
|
VariableDocumentation(java.lang.Class<?> typeClass,
java.lang.String type,
java.lang.String name,
java.lang.String description,
java.lang.reflect.Parameter parameter,
java.lang.reflect.Field field,
java.lang.String value)
Creates documentation for a variable
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.reflect.Field |
getField()
Returns the documented field, or null if unknown
|
java.lang.reflect.Parameter |
getParameter()
Returns the documented parameter, or null if unknown
|
java.lang.String |
getValue()
Returns the value stored in this variable, or null if it is unknown.
|
boolean |
setField(java.lang.reflect.Field field)
Sets the documented field.
|
boolean |
setParameter(java.lang.reflect.Parameter parameter)
Sets the documented parameter.
|
getDescription, getName, getNonNullDescription, getType, getTypeClass, hashCode, isDeprecated, setDeprecated, toString
@NotNull public static final VariableDocumentation NULL
public VariableDocumentation(@Nullable java.lang.Class<?> typeClass, @NotNull java.lang.String type, @NotNull java.lang.String name, @Nullable java.lang.String description, @Nullable java.lang.reflect.Parameter parameter, @Nullable java.lang.reflect.Field field)
typeClass
- The actual class of the variable if knowntype
- The type of the variablename
- The declared name of the variableparameter
- The parameter this documentsfield
- The field this documentsdescription
- A description of this variablepublic VariableDocumentation(@Nullable java.lang.Class<?> typeClass, @NotNull java.lang.String type, @NotNull java.lang.String name, @Nullable java.lang.String description, @Nullable java.lang.reflect.Parameter parameter, @Nullable java.lang.reflect.Field field, @Nullable java.lang.String value)
typeClass
- The actual class of the variable if knowntype
- The type of the variablename
- The declared name of the variabledescription
- A description of this variableparameter
- The parameter this documentsfield
- The field this documentsvalue
- The value held in this variable. Useful for constant values@Nullable public java.lang.reflect.Parameter getParameter()
public boolean setParameter(@Nullable java.lang.reflect.Parameter parameter)
parameter
- The documented parameter@Nullable public java.lang.reflect.Field getField()
public boolean setField(@Nullable java.lang.reflect.Field field)
field
- The documented field@Nullable public java.lang.String getValue()
public boolean equals(@Nullable java.lang.Object other)
equals
in class Documentation