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>
the annotation type to search for; never annotationType)null Overrides default org. annotationType that is either
present or meta-present on the AnnotatedElement for
this context.
|
public default <A extends Annotation> List | findRepeatableAnnotations(Class<A>
the repeatable annotation type to search for; never
annotationType)null Overrides default org. annotationType that are either present or
meta-present on the AnnotatedElement for this context.
|
public default AnnotatedElement | getAnnotatedElement()
Implements org. AnnotatedElement for this context.
|
public default Executable | Returns: the declaringExecutable ; never null Get 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>
the annotation type to search for; never annotationType)null Overrides default org. annotationType is either
present or meta-present on the AnnotatedElement for
this context.
|
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 WARNINGFavor the use of this method over directly invoking
|