org.springframework.core

## 类 StandardReflectionParameterNameDiscoverer

- java.lang.Object
- - org.springframework.core.StandardReflectionParameterNameDiscoverer

- 所有已实现的接口:
    ParameterNameDiscoverer

      public class StandardReflectionParameterNameDiscoverer
      extends Object
      implements ParameterNameDiscoverer

  `ParameterNameDiscoverer` implementation which uses JDK 8's reflection facilities for introspecting parameter names (based on the "-parameters" compiler flag).
  从以下版本开始:
    4.0
  作者:
    Juergen Hoeller
  另请参阅:
    `Executable.getParameters()`, `Parameter.getName()`

- - ### 构造器概要

    构造器
    构造器和说明
    `StandardReflectionParameterNameDiscoverer()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String[]` | `getParameterNames(Constructor<?> ctor)` Return parameter names for a constructor, or `null` if they cannot be determined.
    `String[]` | `getParameterNames(Method method)` Return parameter names for a method, or `null` if they cannot be determined.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### StandardReflectionParameterNameDiscoverer

          public StandardReflectionParameterNameDiscoverer()

  - ### 方法详细资料

    - #### getParameterNames

          @Nullable
          public String[] getParameterNames(Method method)

      从接口复制的说明: `ParameterNameDiscoverer`
      Return parameter names for a method, or `null` if they cannot be determined.

      Individual entries in the array may be `null` if parameter names are only available for some parameters of the given method but not for others. However, it is recommended to use stub parameter names instead wherever feasible.

      指定者:
        `getParameterNames` 在接口中 `ParameterNameDiscoverer`
      参数:
        `method` - the method to find parameter names for
      返回:
        an array of parameter names if the names can be resolved, or `null` if they cannot

    - #### getParameterNames

          @Nullable
          public String[] getParameterNames(Constructor<?> ctor)

      从接口复制的说明: `ParameterNameDiscoverer`
      Return parameter names for a constructor, or `null` if they cannot be determined.

      Individual entries in the array may be `null` if parameter names are only available for some parameters of the given constructor but not for others. However, it is recommended to use stub parameter names instead wherever feasible.

      指定者:
        `getParameterNames` 在接口中 `ParameterNameDiscoverer`
      参数:
        `ctor` - the constructor to find parameter names for
      返回:
        an array of parameter names if the names can be resolved, or `null` if they cannot