public class DelegatingMethodParameter
extends org.springframework.core.MethodParameter
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.core.MethodParameter |
changeContainingClass(org.springframework.core.MethodParameter methodParameter,
Class<?> containingClass)
Return a variant of this
MethodParameter which refers to the
given containing class. |
static org.springframework.core.MethodParameter[] |
customize(String[] pNames,
org.springframework.core.MethodParameter[] parameters,
Optional<DelegatingMethodParameterCustomizer> optionalDelegatingMethodParameterCustomizer,
boolean defaultFlatParamObject)
Customize method parameter [ ].
|
boolean |
equals(Object o) |
AnnotatedElement |
getAnnotatedElement() |
Constructor<?> |
getConstructor() |
Class<?> |
getContainingClass() |
Class<?> |
getDeclaringClass() |
Executable |
getExecutable() |
Type |
getGenericParameterType() |
Member |
getMember() |
Method |
getMethod() |
Type |
getNestedGenericParameterType() |
Class<?> |
getNestedParameterType() |
Annotation[] |
getParameterAnnotations() |
String |
getParameterName() |
Class<?> |
getParameterType() |
int |
hashCode() |
void |
initParameterNameDiscovery(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer) |
boolean |
isNotRequired()
Is not required boolean.
|
boolean |
isParameterObject()
Is parameter object boolean.
|
void |
setNotRequired(boolean notRequired)
Sets not required.
|
org.springframework.core.MethodParameter |
withContainingClass(Class<?> containingClass) |
adaptAnnotation, adaptAnnotationArray, clone, decreaseNestingLevel, findParameterIndex, forExecutable, forMethodOrConstructor, forParameter, getMethodAnnotation, getMethodAnnotations, getNestingLevel, getParameter, getParameterAnnotation, getParameterIndex, getTypeIndexForCurrentLevel, getTypeIndexForLevel, hasMethodAnnotation, hasParameterAnnotation, hasParameterAnnotations, increaseNestingLevel, isOptional, nested, nested, nestedIfOptional, setTypeIndexForCurrentLevel, toString, withTypeIndexpublic static org.springframework.core.MethodParameter[] customize(String[] pNames, org.springframework.core.MethodParameter[] parameters, Optional<DelegatingMethodParameterCustomizer> optionalDelegatingMethodParameterCustomizer, boolean defaultFlatParamObject)
pNames - the p namesparameters - the parametersoptionalDelegatingMethodParameterCustomizer - the optional delegating method parameter customizerdefaultFlatParamObject - the default flat param objectpublic static org.springframework.core.MethodParameter changeContainingClass(org.springframework.core.MethodParameter methodParameter,
@Nullable
Class<?> containingClass)
MethodParameter which refers to the
given containing class.methodParameter - the method parametercontainingClass - a specific containing class (potentially a subclass of the declaring class, e.g. substituting a type variable) A copy of spring withContainingClass, to keep compatibility with older spring versions#getParameterType()@NonNull public Annotation[] getParameterAnnotations()
getParameterAnnotations in class org.springframework.core.MethodParameterpublic String getParameterName()
getParameterName in class org.springframework.core.MethodParameterpublic Method getMethod()
getMethod in class org.springframework.core.MethodParameterpublic Constructor<?> getConstructor()
getConstructor in class org.springframework.core.MethodParameterpublic Class<?> getDeclaringClass()
getDeclaringClass in class org.springframework.core.MethodParameterpublic Member getMember()
getMember in class org.springframework.core.MethodParameterpublic AnnotatedElement getAnnotatedElement()
getAnnotatedElement in class org.springframework.core.MethodParameterpublic Executable getExecutable()
getExecutable in class org.springframework.core.MethodParameterpublic org.springframework.core.MethodParameter withContainingClass(Class<?> containingClass)
withContainingClass in class org.springframework.core.MethodParameterpublic Class<?> getContainingClass()
getContainingClass in class org.springframework.core.MethodParameterpublic Class<?> getParameterType()
getParameterType in class org.springframework.core.MethodParameterpublic Type getGenericParameterType()
getGenericParameterType in class org.springframework.core.MethodParameterpublic Class<?> getNestedParameterType()
getNestedParameterType in class org.springframework.core.MethodParameterpublic Type getNestedGenericParameterType()
getNestedGenericParameterType in class org.springframework.core.MethodParameterpublic void initParameterNameDiscovery(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
initParameterNameDiscovery in class org.springframework.core.MethodParameterpublic boolean isNotRequired()
public void setNotRequired(boolean notRequired)
notRequired - the not requiredpublic boolean equals(Object o)
equals in class org.springframework.core.MethodParameterpublic int hashCode()
hashCode in class org.springframework.core.MethodParameterpublic boolean isParameterObject()
Copyright © 2024. All rights reserved.