Uses of Class
org.springframework.core.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
Modifier and TypeMethodDescriptionMethodParameter.clone()
static MethodParameter
MethodParameter.forExecutable
(Executable executable, int parameterIndex) Create a new MethodParameter for the given method or constructor.static MethodParameter
MethodParameter.forMethodOrConstructor
(Object methodOrConstructor, int parameterIndex) Deprecated.static MethodParameter
MethodParameter.forParameter
(Parameter parameter) Create a new MethodParameter for the given parameter descriptor.MethodParameter.nested()
Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper.Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper.MethodParameter.nestedIfOptional()
Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper in case of aOptional
declaration.MethodParameter.withContainingClass
(Class<?> containingClass) Return a variant of thisMethodParameter
which refers to the given containing class.MethodParameter.withTypeIndex
(int typeIndex) Return a variant of thisMethodParameter
with the type for the current level set to the specified value.Modifier and TypeMethodDescriptionstatic ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter) Return aResolvableType
for the specifiedMethodParameter
.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, Type targetType) Return aResolvableType
for the specifiedMethodParameter
, overriding the target type to resolve with a specific given type.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableType
for the specifiedMethodParameter
with a given implementation type.static String
Conventions.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()
ModifierConstructorDescriptionMethodParameter
(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
Modifier and TypeClassDescriptionclass
AMethodParameter
variant which synthesizes annotations that declare attribute aliases via@AliasFor
. -
Uses of MethodParameter in org.springframework.core.convert
Modifier and TypeMethodDescriptionstatic TypeDescriptor
TypeDescriptor.nested
(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.ModifierConstructorDescriptionTypeDescriptor
(MethodParameter methodParameter) Create a new type descriptor from aMethodParameter
.
forExecutable(java.lang.reflect.Executable, int)