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, withTypeIndex
public 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.MethodParameter
public String getParameterName()
getParameterName
in class org.springframework.core.MethodParameter
public Method getMethod()
getMethod
in class org.springframework.core.MethodParameter
public Constructor<?> getConstructor()
getConstructor
in class org.springframework.core.MethodParameter
public Class<?> getDeclaringClass()
getDeclaringClass
in class org.springframework.core.MethodParameter
public Member getMember()
getMember
in class org.springframework.core.MethodParameter
public AnnotatedElement getAnnotatedElement()
getAnnotatedElement
in class org.springframework.core.MethodParameter
public Executable getExecutable()
getExecutable
in class org.springframework.core.MethodParameter
public org.springframework.core.MethodParameter withContainingClass(Class<?> containingClass)
withContainingClass
in class org.springframework.core.MethodParameter
public Class<?> getContainingClass()
getContainingClass
in class org.springframework.core.MethodParameter
public Class<?> getParameterType()
getParameterType
in class org.springframework.core.MethodParameter
public Type getGenericParameterType()
getGenericParameterType
in class org.springframework.core.MethodParameter
public Class<?> getNestedParameterType()
getNestedParameterType
in class org.springframework.core.MethodParameter
public Type getNestedGenericParameterType()
getNestedGenericParameterType
in class org.springframework.core.MethodParameter
public void initParameterNameDiscovery(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
initParameterNameDiscovery
in class org.springframework.core.MethodParameter
public boolean isNotRequired()
public void setNotRequired(boolean notRequired)
notRequired
- the not requiredpublic boolean equals(Object o)
equals
in class org.springframework.core.MethodParameter
public int hashCode()
hashCode
in class org.springframework.core.MethodParameter
public boolean isParameterObject()
Copyright © 2024. All rights reserved.