类 CompositeParameterNameDiscoverer
java.lang.Object
cn.taketoday.core.ParameterNameDiscoverer
cn.taketoday.core.CompositeParameterNameDiscoverer
- 所有已实现的接口:
ArraySizeTrimmer
- 直接已知子类:
DefaultParameterNameDiscoverer
public class CompositeParameterNameDiscoverer
extends ParameterNameDiscoverer
implements ArraySizeTrimmer
ParameterNameDiscoverer implementation that tries several discoverer
delegates in succession. Those added first in the addDiscoverer method
have high-est priority. If one returns null, the next will be tried.
The default behavior is to return null if no discoverer matches.
- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/9/10 23:02
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddDiscoverer(ParameterNameDiscoverer... discoverer) add ParameterNameDiscovererString[]getParameterNames(Executable executable) Return parameter names for an Executable(method or constructor), ornullif they cannot be determined.voidTrims the capacity of this instance's (list or array) to its size.从类继承的方法 cn.taketoday.core.ParameterNameDiscoverer
doGet
-
构造器详细资料
-
CompositeParameterNameDiscoverer
public CompositeParameterNameDiscoverer()
-
-
方法详细资料
-
addDiscoverer
add ParameterNameDiscoverer- 参数:
discoverer- ParameterNameDiscoverers
-
getParameterNames
从类复制的说明:ParameterNameDiscovererReturn parameter names for an Executable(method or constructor), ornullif they cannot be determined.Individual entries in the array may be
nullif 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- 参数:
executable- the Executable(method or constructor) to find parameter names for- 返回:
- an array of parameter names if the names can be resolved,
or
nullif they cannot - 另请参阅:
-
trimToSize
public void trimToSize()从接口复制的说明:ArraySizeTrimmerTrims the capacity of this instance's (list or array) to its size. An application can use this operation to minimize the storage of this instance.- 指定者:
trimToSize在接口中ArraySizeTrimmer
-