ParameterContext encapsulates the context in which an
Executable will be invoked for a given
Parameter.
A ParameterContext is used to support parameter resolution via
a ParameterResolver.
ParameterResolver, java.lang.reflect.Parameter , java.lang.reflect.Executable , java.lang.reflect.Method , java.lang.reflect.Constructor
| Modifier and Type | Method and Description |
|---|---|
| public default <A extends Annotation> Optional | findAnnotation(Class<A> annotationType)
Overrides default org. Find the first annotation of |
| public default <A extends Annotation> List | findRepeatableAnnotations(Class<A> annotationType)
Overrides default org. Find all repeatable annotations of
|
| public default AnnotatedElement | getAnnotatedElement()
Implements org. Get the |
| public default Executable | Returns: the declaringExecutable; never nullGet the |
| public int | Returns: the index of the parameterGet the index of the |
| public Parameter | |
| public Optional | Returns: anOptional containing the target on which the
Executable will be invoked; never null but will be
empty if the Executable is a constructor or a
static method.Get the target on which the |
| public default boolean | isAnnotated(Class<? extends Annotation> annotationType)
Overrides default org. Determine if an annotation of |
| findAnnotation | back to summary |
|---|---|
| public default <A extends Annotation> Optional Overrides default org. Doc from org. Find the first annotation of WARNINGFavor the use of this method over directly invoking annotation lookup
methods in the | |
| findRepeatableAnnotations | back to summary |
|---|---|
| public default <A extends Annotation> List Overrides default org. Doc from org. Find all repeatable annotations of
WARNINGFavor the use of this method over directly invoking annotation lookup
methods in the | |
| getAnnotatedElement | back to summary |
|---|---|
| public default AnnotatedElement getAnnotatedElement() Implements org. Doc from org. Get the WARNINGWhen searching for annotations on the annotated element in this context,
favor
| |
| getDeclaringExecutable | back to summary |
|---|---|
| public default Executable getDeclaringExecutable() Get the
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Get the index of the
| |
| getParameter | back to summary |
|---|---|
| public Parameter getParameter() Get the WARNINGWhen searching for annotations on the parameter in this context,
favor
| |
| getTarget | back to summary |
|---|---|
| public Optional Get the target on which the | |
| isAnnotated | back to summary |
|---|---|
| public default boolean isAnnotated(Class<? extends Annotation> annotationType) Overrides default org. Doc from org. Determine if an annotation of Note This method does not find repeatable annotations.
To check for repeatable annotations, use WARNINGFavor the use of this method over directly invoking
| |