Package org.springdoc.core.extractor
Class DelegatingMethodParameter
java.lang.Object
org.springframework.core.MethodParameter
org.springdoc.core.extractor.DelegatingMethodParameter
public class DelegatingMethodParameter
extends org.springframework.core.MethodParameter
The type Delegating method parameter.
- Author:
- zarebski.m
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.core.MethodParameter
changeContainingClass
(org.springframework.core.MethodParameter methodParameter, Class<?> containingClass) Return a variant of thisMethodParameter
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
Constructor<?>
Class<?>
Class<?>
Class<?>
Class<?>
int
hashCode()
void
initParameterNameDiscovery
(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer) boolean
Is not required boolean.boolean
Is parameter object boolean.void
setNotRequired
(boolean notRequired) Sets not required.org.springframework.core.MethodParameter
withContainingClass
(Class<?> containingClass) Methods inherited from class org.springframework.core.MethodParameter
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
-
Method Details
-
customize
public static org.springframework.core.MethodParameter[] customize(String[] pNames, org.springframework.core.MethodParameter[] parameters, Optional<DelegatingMethodParameterCustomizer> optionalDelegatingMethodParameterCustomizer, boolean defaultFlatParamObject) Customize method parameter [ ].- Parameters:
pNames
- the p namesparameters
- the parametersoptionalDelegatingMethodParameterCustomizer
- the optional delegating method parameter customizerdefaultFlatParamObject
- the default flat param object- Returns:
- the method parameter [ ]
-
changeContainingClass
public static org.springframework.core.MethodParameter changeContainingClass(org.springframework.core.MethodParameter methodParameter, @Nullable Class<?> containingClass) Return a variant of thisMethodParameter
which refers to the given containing class.- Parameters:
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- Returns:
- the method parameter
- See Also:
-
getParameterAnnotations
- Overrides:
getParameterAnnotations
in classorg.springframework.core.MethodParameter
-
getParameterName
- Overrides:
getParameterName
in classorg.springframework.core.MethodParameter
-
getMethod
- Overrides:
getMethod
in classorg.springframework.core.MethodParameter
-
getConstructor
- Overrides:
getConstructor
in classorg.springframework.core.MethodParameter
-
getDeclaringClass
- Overrides:
getDeclaringClass
in classorg.springframework.core.MethodParameter
-
getMember
- Overrides:
getMember
in classorg.springframework.core.MethodParameter
-
getAnnotatedElement
- Overrides:
getAnnotatedElement
in classorg.springframework.core.MethodParameter
-
getExecutable
- Overrides:
getExecutable
in classorg.springframework.core.MethodParameter
-
withContainingClass
- Overrides:
withContainingClass
in classorg.springframework.core.MethodParameter
-
getContainingClass
- Overrides:
getContainingClass
in classorg.springframework.core.MethodParameter
-
getParameterType
- Overrides:
getParameterType
in classorg.springframework.core.MethodParameter
-
getGenericParameterType
- Overrides:
getGenericParameterType
in classorg.springframework.core.MethodParameter
-
getNestedParameterType
- Overrides:
getNestedParameterType
in classorg.springframework.core.MethodParameter
-
getNestedGenericParameterType
- Overrides:
getNestedGenericParameterType
in classorg.springframework.core.MethodParameter
-
initParameterNameDiscovery
public void initParameterNameDiscovery(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer) - Overrides:
initParameterNameDiscovery
in classorg.springframework.core.MethodParameter
-
isNotRequired
public boolean isNotRequired()Is not required boolean.- Returns:
- the boolean
-
setNotRequired
public void setNotRequired(boolean notRequired) Sets not required.- Parameters:
notRequired
- the not required
-
equals
- Overrides:
equals
in classorg.springframework.core.MethodParameter
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.core.MethodParameter
-
isParameterObject
public boolean isParameterObject()Is parameter object boolean.- Returns:
- the boolean
-