protected class HandlerMethod.HandlerMethodParameter extends SynthesizingMethodParameter
| Modifier | Constructor and Description |
|---|---|
protected |
HandlerMethodParameter(HandlerMethod.HandlerMethodParameter original) |
|
HandlerMethodParameter(int index) |
| Modifier and Type | Method and Description |
|---|---|
HandlerMethod.HandlerMethodParameter |
clone() |
Class<?> |
getContainingClass()
Return the containing class for this method parameter.
|
Method |
getMethod()
Return the wrapped Method, if any.
|
<T extends Annotation> |
getMethodAnnotation(Class<T> annotationType)
Return the method/constructor annotation of the given type, if available.
|
Annotation[] |
getParameterAnnotations()
Return the annotations associated with the specific method/constructor parameter.
|
<T extends Annotation> |
hasMethodAnnotation(Class<T> annotationType)
Return whether the method/constructor is annotated with the given type.
|
adaptAnnotation, adaptAnnotationArray, forExecutable, forParameterdecreaseNestingLevel, equals, findParameterIndex, forMethodOrConstructor, getAnnotatedElement, getConstructor, getDeclaringClass, getExecutable, getGenericParameterType, getMember, getMethodAnnotations, getNestedGenericParameterType, getNestedParameterType, getNestingLevel, getParameter, getParameterAnnotation, getParameterIndex, getParameterName, getParameterType, getTypeIndexForCurrentLevel, getTypeIndexForLevel, hashCode, hasParameterAnnotation, hasParameterAnnotations, increaseNestingLevel, initParameterNameDiscovery, isOptional, nested, nested, nestedIfOptional, setTypeIndexForCurrentLevel, toString, withContainingClass, withTypeIndexpublic HandlerMethodParameter(int index)
protected HandlerMethodParameter(HandlerMethod.HandlerMethodParameter original)
@NonNull public Method getMethod()
MethodParameterNote: Either Method or Constructor is available.
getMethod in class MethodParameternull if nonepublic Class<?> getContainingClass()
MethodParametergetContainingClass in class MethodParameterMethodParameter.getDeclaringClass()public <T extends Annotation> T getMethodAnnotation(Class<T> annotationType)
MethodParametergetMethodAnnotation in class MethodParameterannotationType - the annotation type to look fornull if not foundpublic <T extends Annotation> boolean hasMethodAnnotation(Class<T> annotationType)
MethodParameterhasMethodAnnotation in class MethodParameterannotationType - the annotation type to look forMethodParameter.getMethodAnnotation(Class)public Annotation[] getParameterAnnotations()
MethodParametergetParameterAnnotations in class MethodParameterpublic HandlerMethod.HandlerMethodParameter clone()
clone in class SynthesizingMethodParameter