Package org.springdoc.core
Class DelegatingMethodParameter
- java.lang.Object
-
- org.springframework.core.MethodParameter
-
- org.springdoc.core.DelegatingMethodParameter
-
public class DelegatingMethodParameter extends org.springframework.core.MethodParameter
The 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.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)
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)
-
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)
Customize method parameter [ ].- Parameters:
pNames
- the p namesparameters
- the parametersoptionalDelegatingMethodParameterCustomizer
- the optional delegating method parameter customizer- Returns:
- the method parameter [ ]
-
getParameterAnnotations
@NonNull public Annotation[] getParameterAnnotations()
- Overrides:
getParameterAnnotations
in classorg.springframework.core.MethodParameter
-
getParameterName
public String getParameterName()
- Overrides:
getParameterName
in classorg.springframework.core.MethodParameter
-
getMethod
public Method getMethod()
- Overrides:
getMethod
in classorg.springframework.core.MethodParameter
-
getConstructor
public Constructor<?> getConstructor()
- Overrides:
getConstructor
in classorg.springframework.core.MethodParameter
-
getDeclaringClass
public Class<?> getDeclaringClass()
- Overrides:
getDeclaringClass
in classorg.springframework.core.MethodParameter
-
getMember
public Member getMember()
- Overrides:
getMember
in classorg.springframework.core.MethodParameter
-
getAnnotatedElement
public AnnotatedElement getAnnotatedElement()
- Overrides:
getAnnotatedElement
in classorg.springframework.core.MethodParameter
-
getExecutable
public Executable getExecutable()
- Overrides:
getExecutable
in classorg.springframework.core.MethodParameter
-
withContainingClass
public org.springframework.core.MethodParameter withContainingClass(Class<?> containingClass)
- Overrides:
withContainingClass
in classorg.springframework.core.MethodParameter
-
getContainingClass
public Class<?> getContainingClass()
- Overrides:
getContainingClass
in classorg.springframework.core.MethodParameter
-
getParameterType
public Class<?> getParameterType()
- Overrides:
getParameterType
in classorg.springframework.core.MethodParameter
-
getGenericParameterType
public Type getGenericParameterType()
- Overrides:
getGenericParameterType
in classorg.springframework.core.MethodParameter
-
getNestedParameterType
public Class<?> getNestedParameterType()
- Overrides:
getNestedParameterType
in classorg.springframework.core.MethodParameter
-
getNestedGenericParameterType
public Type 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
public boolean equals(Object o)
- 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
-
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:
containingClass
- 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- See Also:
getParameterType()
-
-