类 LocalVariableTableParameterNameDiscoverer
java.lang.Object
cn.taketoday.core.ParameterNameDiscoverer
cn.taketoday.core.LocalVariableTableParameterNameDiscoverer
- 所有已实现的接口:
Function<Class<?>,Map<Executable, String[]>>
public class LocalVariableTableParameterNameDiscoverer
extends ParameterNameDiscoverer
implements Function<Class<?>,Map<Executable,String[]>>
Implementation of
ParameterNameDiscoverer that uses the LocalVariableTable
information in the method attributes to discover parameter names. Returns
null if the class file was compiled without debug information.
Uses ObjectWeb's ASM library for analyzing class files. Each discoverer instance caches the ASM discovered information for each introspected Class, in a thread-safe manner. It is recommended to reuse ParameterNameDiscoverer instances as far as possible.
- 从以下版本开始:
- 4.0
- 作者:
- TODAY 2021/9/10 22:34
-
嵌套类概要
嵌套类修饰符和类型类说明private static classprivate static classHelper class that inspects all methods and constructors and then attempts to find the parameter names for the givenExecutable. -
字段概要
字段修饰符和类型字段说明private static final Loggerprivate static final Map<Executable,String[]> private final ConcurrentHashMap<Class<?>,Map<Executable, String[]>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Map<Executable,String[]> String[]doGet(Executable executable) private Map<Executable,String[]> inspectClass(Class<?> clazz) Inspects the target class.从类继承的方法 cn.taketoday.core.ParameterNameDiscoverer
findParameterNames, getParameterNames, getSharedInstance
-
字段详细资料
-
log
-
NO_DEBUG_INFO_MAP
-
parameterNamesCache
-
-
构造器详细资料
-
LocalVariableTableParameterNameDiscoverer
public LocalVariableTableParameterNameDiscoverer()
-
-
方法详细资料
-
doGet
- 覆盖:
doGet在类中ParameterNameDiscoverer
-
apply
-
inspectClass
Inspects the target class.Exceptions will be logged, and a marker map returned to indicate the lack of debug information.
-