Parameter
A parameter of a function or other callable declaration.
Properties
All annotations on this element with their source information.
All annotations on this element, including inherited ones.
Annotations declared directly on this element.
The global index of the parameter in the list of all parameters.
Whether the parameter has a default value.
The index of the parameter in the list of parameters of its Kind.
The kind of the parameter: dispatch, context, extension, or value.
Functions
Get the first annotation of type T, or null if none is found.
Get all annotations of type T.
Throws an exception if the parameter cannot accept the given value. Not throwing does not guarantee acceptance (although it typically will be accepted).
Returns true if the parameter can possibly accept the given value. Returning true does not guarantee acceptance (although it typically will be accepted), but returning false does guarantee rejection.