Class DelegatingMethodParameter


  • public class DelegatingMethodParameter
    extends org.springframework.core.MethodParameter
    The type Delegating method parameter.
    Author:
    zarebski.m
    • 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 names
        parameters - the parameters
        optionalDelegatingMethodParameterCustomizer - the optional delegating method parameter customizer
        Returns:
        the method parameter [ ]
      • getParameterAnnotations

        @NonNull
        public Annotation[] getParameterAnnotations()
        Overrides:
        getParameterAnnotations in class org.springframework.core.MethodParameter
      • getParameterName

        public String getParameterName()
        Overrides:
        getParameterName in class org.springframework.core.MethodParameter
      • getMethod

        public Method getMethod()
        Overrides:
        getMethod in class org.springframework.core.MethodParameter
      • getConstructor

        public Constructor<?> getConstructor()
        Overrides:
        getConstructor in class org.springframework.core.MethodParameter
      • getDeclaringClass

        public Class<?> getDeclaringClass()
        Overrides:
        getDeclaringClass in class org.springframework.core.MethodParameter
      • getMember

        public Member getMember()
        Overrides:
        getMember in class org.springframework.core.MethodParameter
      • getAnnotatedElement

        public AnnotatedElement getAnnotatedElement()
        Overrides:
        getAnnotatedElement in class org.springframework.core.MethodParameter
      • getExecutable

        public Executable getExecutable()
        Overrides:
        getExecutable in class org.springframework.core.MethodParameter
      • withContainingClass

        public org.springframework.core.MethodParameter withContainingClass​(Class<?> containingClass)
        Overrides:
        withContainingClass in class org.springframework.core.MethodParameter
      • getContainingClass

        public Class<?> getContainingClass()
        Overrides:
        getContainingClass in class org.springframework.core.MethodParameter
      • getParameterType

        public Class<?> getParameterType()
        Overrides:
        getParameterType in class org.springframework.core.MethodParameter
      • getGenericParameterType

        public Type getGenericParameterType()
        Overrides:
        getGenericParameterType in class org.springframework.core.MethodParameter
      • getNestedParameterType

        public Class<?> getNestedParameterType()
        Overrides:
        getNestedParameterType in class org.springframework.core.MethodParameter
      • getNestedGenericParameterType

        public Type getNestedGenericParameterType()
        Overrides:
        getNestedGenericParameterType in class org.springframework.core.MethodParameter
      • initParameterNameDiscovery

        public void initParameterNameDiscovery​(org.springframework.core.ParameterNameDiscoverer parameterNameDiscoverer)
        Overrides:
        initParameterNameDiscovery in class org.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 class org.springframework.core.MethodParameter
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.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 this MethodParameter which refers to the given containing class.
        Parameters:
        methodParameter - the method parameter
        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
        Returns:
        the method parameter
        See Also:
        #getParameterType()