Package org.springframework.web.method
Class HandlerMethod.HandlerMethodParameter
java.lang.Object
org.springframework.core.MethodParameter
org.springframework.core.annotation.SynthesizingMethodParameter
org.springframework.web.method.HandlerMethod.HandlerMethodParameter
- Enclosing class:
- HandlerMethod
A MethodParameter with HandlerMethod-specific behavior.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Class<?>Return the containing class for this method parameter.Return the wrapped Method, if any.<T extends Annotation>
 TgetMethodAnnotation(Class<T> annotationType) Return the method/constructor annotation of the given type, if available.Return the annotations associated with the specific method/constructor parameter.<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.SynthesizingMethodParameteradaptAnnotation, adaptAnnotationArray, forExecutable, forParameterMethods inherited from class org.springframework.core.MethodParameterdecreaseNestingLevel, 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, withTypeIndex
- 
Constructor Details- 
HandlerMethodParameterpublic HandlerMethodParameter(int index) 
- 
HandlerMethodParameter
 
- 
- 
Method Details- 
getMethodDescription copied from class:MethodParameterReturn the wrapped Method, if any.Note: Either Method or Constructor is available. - Overrides:
- getMethodin class- MethodParameter
- Returns:
- the Method, or nullif none
 
- 
getContainingClassDescription copied from class:MethodParameterReturn the containing class for this method parameter.- Overrides:
- getContainingClassin class- MethodParameter
- Returns:
- a specific containing class (potentially a subclass of the declaring class), or otherwise simply the declaring class itself
- See Also:
 
- 
getMethodAnnotationDescription copied from class:MethodParameterReturn the method/constructor annotation of the given type, if available.- Overrides:
- getMethodAnnotationin class- MethodParameter
- Parameters:
- annotationType- the annotation type to look for
- Returns:
- the annotation object, or nullif not found
 
- 
hasMethodAnnotationDescription copied from class:MethodParameterReturn whether the method/constructor is annotated with the given type.- Overrides:
- hasMethodAnnotationin class- MethodParameter
- Parameters:
- annotationType- the annotation type to look for
- See Also:
 
- 
getParameterAnnotationsDescription copied from class:MethodParameterReturn the annotations associated with the specific method/constructor parameter.- Overrides:
- getParameterAnnotationsin class- MethodParameter
 
- 
clone- Overrides:
- clonein class- SynthesizingMethodParameter
 
 
-