类 HandlerMethod.HandlerMethodParameter
- java.lang.Object
- org.springframework.core.MethodParameter
- org.springframework.core.annotation.SynthesizingMethodParameter
- org.springframework.messaging.handler.HandlerMethod.HandlerMethodParameter
- 封闭类:
- HandlerMethod
protected class HandlerMethod.HandlerMethodParameter extends SynthesizingMethodParameter
A MethodParameter with HandlerMethod-specific behavior.
构造器概要
构造器 限定符 构造器 说明 HandlerMethodParameter(int index)
protected
HandlerMethodParameter(HandlerMethod.HandlerMethodParameter original)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 HandlerMethod.HandlerMethodParameter
clone()
Class<?>
getContainingClass()
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.从类继承的方法 org.springframework.core.annotation.SynthesizingMethodParameter
adaptAnnotation, adaptAnnotationArray
从类继承的方法 org.springframework.core.MethodParameter
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
构造器详细资料
HandlerMethodParameter
public HandlerMethodParameter(int index)
HandlerMethodParameter
protected HandlerMethodParameter(HandlerMethod.HandlerMethodParameter original)
方法详细资料
getContainingClass
public Class<?> getContainingClass()
从类复制的说明:MethodParameter
Return the containing class for this method parameter.- 覆盖:
getContainingClass
在类中MethodParameter
- 返回:
- a specific containing class (potentially a subclass of the declaring class), or otherwise simply the declaring class itself
- 另请参阅:
MethodParameter.getDeclaringClass()
getMethodAnnotation
public <T extends Annotation> T getMethodAnnotation(Class<T> annotationType)
从类复制的说明:MethodParameter
Return the method/constructor annotation of the given type, if available.- 覆盖:
getMethodAnnotation
在类中MethodParameter
- 参数:
annotationType
- the annotation type to look for- 返回:
- the annotation object, or
null
if not found
hasMethodAnnotation
public <T extends Annotation> boolean hasMethodAnnotation(Class<T> annotationType)
从类复制的说明:MethodParameter
Return whether the method/constructor is annotated with the given type.- 覆盖:
hasMethodAnnotation
在类中MethodParameter
- 参数:
annotationType
- the annotation type to look for- 另请参阅:
MethodParameter.getMethodAnnotation(Class)
clone
public HandlerMethod.HandlerMethodParameter clone()
- 覆盖:
clone
在类中SynthesizingMethodParameter