## 类的使用
org.springframework.core.MethodParameter

- 使用MethodParameter的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core | Provides basic classes for exception handling and version detection, and other core helpers that are not specific to any part of the framework.
  org.springframework.core.annotation | Core support package for annotations, meta-annotations, and composed annotations with attribute overrides.
  org.springframework.core.convert | Type conversion system API.

- - ### org.springframework.core中MethodParameter的使用

    返回MethodParameter的org.springframework.core中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodParameter` | MethodParameter.`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)` 已过时。 as of 5.0, in favor of `forExecutable(java.lang.reflect.Executable, int)`
    `static MethodParameter` | MethodParameter.`forParameter(Parameter parameter)` Create a new MethodParameter for the given parameter descriptor.
    `MethodParameter` | MethodParameter.`nested()` Return a variant of this `MethodParameter` which points to the same parameter but one nesting level deeper.
    `MethodParameter` | MethodParameter.`nestedIfOptional()` Return a variant of this `MethodParameter` which points to the same parameter but one nesting level deeper in case of a `Optional` declaration.

    参数类型为MethodParameter的org.springframework.core中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ResolvableType` | ResolvableType.`forMethodParameter(MethodParameter methodParameter)` Return a `ResolvableType` for the specified `MethodParameter`.
    `static ResolvableType` | ResolvableType.`forMethodParameter(MethodParameter methodParameter, ResolvableType implementationType)` Return a `ResolvableType` for the specified `MethodParameter` with a given implementation type.
    `static ResolvableType` | ResolvableType.`forMethodParameter(MethodParameter methodParameter, Type targetType)` Return a `ResolvableType` for the specified `MethodParameter`, overriding the target type to resolve with a specific given 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)` Determine the target type for the given generic parameter type.

    参数类型为MethodParameter的org.springframework.core中的构造器
    构造器和说明
    `MethodParameter(MethodParameter original)` Copy constructor, resulting in an independent MethodParameter object based on the same metadata and cache state that the original object was in.

  - ### org.springframework.core.annotation中MethodParameter的使用

    org.springframework.core.annotation中MethodParameter的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `SynthesizingMethodParameter` A `MethodParameter` variant which synthesizes annotations that declare attribute aliases via `@AliasFor`.

  - ### org.springframework.core.convert中MethodParameter的使用

    参数类型为MethodParameter的org.springframework.core.convert中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static TypeDescriptor` | TypeDescriptor.`nested(MethodParameter methodParameter, int nestingLevel)` Create a type descriptor for a nested type declared within the method parameter.

    参数类型为MethodParameter的org.springframework.core.convert中的构造器
    构造器和说明
    `TypeDescriptor(MethodParameter methodParameter)` Create a new type descriptor from a `MethodParameter`.