public class ParameterData extends SimpleParameter
Constructor and Description |
---|
ParameterData() |
Modifier and Type | Method and Description |
---|---|
Binding |
getBinding()
Get the binding associated with this parameter.
|
java.lang.annotation.Annotation |
getClassifier()
Get the classifier annotation.
|
java.lang.annotation.Annotation[] |
getModifiers()
Get a list of modifier annotations.
|
java.lang.reflect.Type |
getType()
Set the main type of this parameter.
|
getDefaultValue, getFlag, getName, isOptional, isValueFlag, setDefaultValue, setFlag, setName, setOptional, toString
public Binding getBinding()
public java.lang.reflect.Type getType()
The type is normally that is used to determine which binding is used for a particular method's parameter.
which can override the type
public java.lang.annotation.Annotation getClassifier()
Normally, the type determines what binding is called, but classifiers
take precedence if one is found (and registered with
ParametricBuilder.addBinding(Binding, Type...)
).
An example of a classifier annotation is Text
.
public java.lang.annotation.Annotation[] getModifiers()
Modifier annotations are not considered in the process of choosing a binding
for a method parameter, but they can be used to modify the behavior of a binding.
An example of a modifier annotation is Range
, which can restrict
numeric values handled by PrimitiveBindings
to be within a range. The list
of annotations may contain a classifier and other unrelated annotations.