Package org.springdoc.core
Class DelegatingMethodParameter
- java.lang.Object
-
- org.springframework.core.MethodParameter
-
- org.springdoc.core.DelegatingMethodParameter
-
public class DelegatingMethodParameter extends org.springframework.core.MethodParameterThe type Delegating method parameter.- Author:
- zarebski.m
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.springframework.core.MethodParameterchangeContainingClass(org.springframework.core.MethodParameter methodParameter, Class<?> containingClass)Return a variant of thisMethodParameterwhich 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 [ ].booleanequals(Object o)AnnotatedElementgetAnnotatedElement()Constructor<?>getConstructor()Class<?>getContainingClass()Class<?>getDeclaringClass()ExecutablegetExecutable()TypegetGenericParameterType()MembergetMember()MethodgetMethod()TypegetNestedGenericParameterType()Class<?>getNestedParameterType()Annotation[]getParameterAnnotations()StringgetParameterName()Class<?>getParameterType()inthashCode()voidinitParameterNameDiscovery(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)booleanisNotRequired()Is not required boolean.booleanisParameterObject()Is parameter object boolean.voidsetNotRequired(boolean notRequired)Sets not required.org.springframework.core.MethodParameterwithContainingClass(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 Detail
-
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 [ ]
-
getParameterAnnotations
@NonNull public Annotation[] getParameterAnnotations()
- Overrides:
getParameterAnnotationsin classorg.springframework.core.MethodParameter
-
getParameterName
public String getParameterName()
- Overrides:
getParameterNamein classorg.springframework.core.MethodParameter
-
getMethod
public Method getMethod()
- Overrides:
getMethodin classorg.springframework.core.MethodParameter
-
getConstructor
public Constructor<?> getConstructor()
- Overrides:
getConstructorin classorg.springframework.core.MethodParameter
-
getDeclaringClass
public Class<?> getDeclaringClass()
- Overrides:
getDeclaringClassin classorg.springframework.core.MethodParameter
-
getMember
public Member getMember()
- Overrides:
getMemberin classorg.springframework.core.MethodParameter
-
getAnnotatedElement
public AnnotatedElement getAnnotatedElement()
- Overrides:
getAnnotatedElementin classorg.springframework.core.MethodParameter
-
getExecutable
public Executable getExecutable()
- Overrides:
getExecutablein classorg.springframework.core.MethodParameter
-
withContainingClass
public org.springframework.core.MethodParameter withContainingClass(Class<?> containingClass)
- Overrides:
withContainingClassin classorg.springframework.core.MethodParameter
-
getContainingClass
public Class<?> getContainingClass()
- Overrides:
getContainingClassin classorg.springframework.core.MethodParameter
-
getParameterType
public Class<?> getParameterType()
- Overrides:
getParameterTypein classorg.springframework.core.MethodParameter
-
getGenericParameterType
public Type getGenericParameterType()
- Overrides:
getGenericParameterTypein classorg.springframework.core.MethodParameter
-
getNestedParameterType
public Class<?> getNestedParameterType()
- Overrides:
getNestedParameterTypein classorg.springframework.core.MethodParameter
-
getNestedGenericParameterType
public Type getNestedGenericParameterType()
- Overrides:
getNestedGenericParameterTypein classorg.springframework.core.MethodParameter
-
initParameterNameDiscovery
public void initParameterNameDiscovery(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
- Overrides:
initParameterNameDiscoveryin 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
public boolean equals(Object o)
- Overrides:
equalsin classorg.springframework.core.MethodParameter
-
hashCode
public int hashCode()
- Overrides:
hashCodein classorg.springframework.core.MethodParameter
-
isParameterObject
public boolean isParameterObject()
Is parameter object boolean.- Returns:
- the boolean
-
changeContainingClass
public static org.springframework.core.MethodParameter changeContainingClass(org.springframework.core.MethodParameter methodParameter, @Nullable Class<?> containingClass)Return a variant of thisMethodParameterwhich 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:
#getParameterType()
-
-