Uses of Class
org.springframework.core.MethodParameter
Packages that use MethodParameter
Package
Description
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Type conversion system API.
-
Uses of MethodParameter in org.springframework.core
Methods in org.springframework.core that return MethodParameterModifier and TypeMethodDescriptionMethodParameter.clone()static MethodParameterMethodParameter.forExecutable(Executable executable, int parameterIndex) Create a new MethodParameter for the given method or constructor.static MethodParameterMethodParameter.forFieldAwareConstructor(Constructor<?> ctor, int parameterIndex, String fieldName) Create a new MethodParameter for the given field-aware constructor, for example, on a data class or record type.static MethodParameterMethodParameter.forMethodOrConstructor(Object methodOrConstructor, int parameterIndex) Deprecated.static MethodParameterMethodParameter.forParameter(Parameter parameter) Create a new MethodParameter for the given parameter descriptor.MethodParameter.nested()Return a variant of thisMethodParameterwhich points to the same parameter but one nesting level deeper.Return a variant of thisMethodParameterwhich points to the same parameter but one nesting level deeper.MethodParameter.nestedIfOptional()Return a variant of thisMethodParameterwhich points to the same parameter but one nesting level deeper in case of aOptionaldeclaration.MethodParameter.withContainingClass(Class<?> containingClass) Return a variant of thisMethodParameterwhich refers to the given containing class.MethodParameter.withTypeIndex(int typeIndex) Return a variant of thisMethodParameterwith the type for the current level set to the specified value.Methods in org.springframework.core with parameters of type MethodParameterModifier and TypeMethodDescriptionstatic ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter) Return aResolvableTypefor the specifiedMethodParameter.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, Type targetType) Return aResolvableTypefor the specifiedMethodParameter, overriding the target type to resolve with a specific given type.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableTypefor the specifiedMethodParameterwith a given implementation type.static StringConventions.getVariableNameForParameter(MethodParameter parameter) Determine the conventional variable name for the given parameter taking the generic collection type, if any, into account.static Class<?>GenericTypeResolver.resolveParameterType(MethodParameter methodParameter, Class<?> implementationClass) Deprecated.since 5.2 in favor ofmethodParameter.withContainingClass(implementationClass).getParameterType()Constructors in org.springframework.core with parameters of type MethodParameterModifierConstructorDescriptionMethodParameter(MethodParameter original) Copy constructor, resulting in an independent MethodParameter object based on the same metadata and cache state that the original object was in. -
Uses of MethodParameter in org.springframework.core.annotation
Subclasses of MethodParameter in org.springframework.core.annotationModifier and TypeClassDescriptionprotected classA MethodParameter with AnnotatedMethod-specific behavior.classAMethodParametervariant which synthesizes annotations that declare attribute aliases via@AliasFor.Methods in org.springframework.core.annotation that return MethodParameterModifier and TypeMethodDescriptionfinal MethodParameter[]AnnotatedMethod.getMethodParameters()Return the method parameters for thisAnnotatedMethod.AnnotatedMethod.getReturnType()Return aMethodParameterfor the declared return type.AnnotatedMethod.getReturnValueType(Object returnValue) Return aMethodParameterfor the actual return value type.Methods in org.springframework.core.annotation with parameters of type MethodParameterModifier and TypeMethodDescriptionprotected static ObjectAnnotatedMethod.findProvidedArgument(MethodParameter parameter, Object... providedArgs) protected static StringAnnotatedMethod.formatArgumentError(MethodParameter param, String message) -
Uses of MethodParameter in org.springframework.core.convert
Methods in org.springframework.core.convert with parameters of type MethodParameterModifier and TypeMethodDescriptionstatic TypeDescriptorTypeDescriptor.nested(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.Constructors in org.springframework.core.convert with parameters of type MethodParameterModifierConstructorDescriptionTypeDescriptor(MethodParameter methodParameter) Create a new type descriptor from aMethodParameter.
forExecutable(java.lang.reflect.Executable, int)