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.
|
<T extends Annotation> |
getMethodAnnotation(Class<T> annotationType)
Return the method/constructor annotation of the given type, if available.
|
<T extends Annotation> |
hasMethodAnnotation(Class<T> annotationType)
Return whether the method/constructor is annotated with the given type.
|
adaptAnnotation, adaptAnnotationArray
decreaseNestingLevel, equals, forMethodOrConstructor, getAnnotatedElement, getConstructor, getDeclaringClass, getGenericParameterType, getMember, getMethod, getMethodAnnotations, getNestedGenericParameterType, getNestedParameterType, getNestingLevel, getParameterAnnotation, getParameterAnnotations, getParameterIndex, getParameterName, getParameterType, getTypeIndexForCurrentLevel, getTypeIndexForLevel, hashCode, hasParameterAnnotation, hasParameterAnnotations, increaseNestingLevel, initParameterNameDiscovery, isOptional, nested, nestedIfOptional, setTypeIndexForCurrentLevel, toString
public HandlerMethodParameter(int index)
protected HandlerMethodParameter(HandlerMethod.HandlerMethodParameter original)
public Class<?> getContainingClass()
MethodParameter
getContainingClass
in class MethodParameter
MethodParameter.getDeclaringClass()
public <T extends Annotation> T getMethodAnnotation(Class<T> annotationType)
MethodParameter
getMethodAnnotation
in class MethodParameter
annotationType
- the annotation type to look fornull
if not foundpublic <T extends Annotation> boolean hasMethodAnnotation(Class<T> annotationType)
MethodParameter
hasMethodAnnotation
in class MethodParameter
annotationType
- the annotation type to look forMethodParameter.getMethodAnnotation(Class)
public HandlerMethod.HandlerMethodParameter clone()
clone
in class SynthesizingMethodParameter