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() |
<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, forExecutable, forParameter
decreaseNestingLevel, equals, findParameterIndex, forMethodOrConstructor, getAnnotatedElement, getConstructor, getDeclaringClass, getExecutable, getGenericParameterType, getMember, getMethod, getMethodAnnotations, getNestedGenericParameterType, getNestedParameterType, getNestingLevel, getParameter, 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()
getContainingClass
in class MethodParameter
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