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() |
java.lang.Class<?> |
getContainingClass() |
<T extends java.lang.annotation.Annotation> |
getMethodAnnotation(java.lang.Class<T> annotationType)
Return the method/constructor annotation of the given type, if available.
|
<T extends java.lang.annotation.Annotation> |
hasMethodAnnotation(java.lang.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 java.lang.Class<?> getContainingClass()
getContainingClass
in class MethodParameter
public <T extends java.lang.annotation.Annotation> T getMethodAnnotation(java.lang.Class<T> annotationType)
MethodParameter
getMethodAnnotation
in class MethodParameter
annotationType
- the annotation type to look fornull
if not foundpublic <T extends java.lang.annotation.Annotation> boolean hasMethodAnnotation(java.lang.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