private static class ModelAttributeMethodProcessor.FieldAwareConstructorParameter extends MethodParameter
MethodParameter
subclass which detects field annotations as well.Modifier and Type | Field and Description |
---|---|
private java.lang.annotation.Annotation[] |
combinedAnnotations |
private java.lang.String |
parameterName |
Constructor and Description |
---|
FieldAwareConstructorParameter(java.lang.reflect.Constructor<?> constructor,
int parameterIndex,
java.lang.String parameterName) |
Modifier and Type | Method and Description |
---|---|
java.lang.annotation.Annotation[] |
getParameterAnnotations()
Return the annotations associated with the specific method/constructor parameter.
|
java.lang.String |
getParameterName()
Return the name of the method/constructor parameter.
|
adaptAnnotation, adaptAnnotationArray, clone, decreaseNestingLevel, equals, findParameterIndex, forExecutable, forMethodOrConstructor, forParameter, getAnnotatedElement, getConstructor, getContainingClass, getDeclaringClass, getExecutable, getGenericParameterType, getMember, getMethod, getMethodAnnotation, getMethodAnnotations, getNestedGenericParameterType, getNestedParameterType, getNestingLevel, getParameter, getParameterAnnotation, getParameterIndex, getParameterType, getTypeIndexForCurrentLevel, getTypeIndexForLevel, hashCode, hasMethodAnnotation, hasParameterAnnotation, hasParameterAnnotations, increaseNestingLevel, initParameterNameDiscovery, isOptional, nested, nestedIfOptional, setTypeIndexForCurrentLevel, toString
private final java.lang.String parameterName
@Nullable private volatile java.lang.annotation.Annotation[] combinedAnnotations
public FieldAwareConstructorParameter(java.lang.reflect.Constructor<?> constructor, int parameterIndex, java.lang.String parameterName)
public java.lang.annotation.Annotation[] getParameterAnnotations()
MethodParameter
getParameterAnnotations
in class MethodParameter
public java.lang.String getParameterName()
MethodParameter
getParameterName
in class MethodParameter
null
if no
parameter name metadata is contained in the class file or no
ParameterNameDiscoverer
has been set to begin with)