Class HandlerMethod.HandlerMethodParameter
java.lang.Object
org.springframework.core.MethodParameter
org.springframework.core.annotation.SynthesizingMethodParameter
org.springframework.messaging.handler.HandlerMethod.HandlerMethodParameter
- Enclosing class:
- HandlerMethod
A MethodParameter with HandlerMethod-specific behavior.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Class<?>
Return the containing class for this method parameter.<T extends Annotation>
TgetMethodAnnotation
(Class<T> annotationType) Return the method/constructor annotation of the given type, if available.<T extends Annotation>
booleanhasMethodAnnotation
(Class<T> annotationType) Return whether the method/constructor is annotated with the given type.Methods inherited from class org.springframework.core.annotation.SynthesizingMethodParameter
adaptAnnotation, adaptAnnotationArray, forExecutable, forParameter
Methods inherited from class org.springframework.core.MethodParameter
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, nested, nestedIfOptional, setTypeIndexForCurrentLevel, toString, withContainingClass, withTypeIndex
-
Constructor Details
-
HandlerMethodParameter
public HandlerMethodParameter(int index) -
HandlerMethodParameter
-
-
Method Details
-
getContainingClass
Description copied from class:MethodParameter
Return the containing class for this method parameter.- Overrides:
getContainingClass
in classMethodParameter
- Returns:
- a specific containing class (potentially a subclass of the declaring class), or otherwise simply the declaring class itself
- See Also:
-
getMethodAnnotation
Description copied from class:MethodParameter
Return the method/constructor annotation of the given type, if available.- Overrides:
getMethodAnnotation
in classMethodParameter
- Parameters:
annotationType
- the annotation type to look for- Returns:
- the annotation object, or
null
if not found
-
hasMethodAnnotation
Description copied from class:MethodParameter
Return whether the method/constructor is annotated with the given type.- Overrides:
hasMethodAnnotation
in classMethodParameter
- Parameters:
annotationType
- the annotation type to look for- See Also:
-
clone
- Overrides:
clone
in classSynthesizingMethodParameter
-