public class CachingParanamer extends Object implements Paranamer
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CachingParanamer.WithoutWeakReferences
This implementation has a better concurrent design (ConcurrentHashMap) which
has a better strategy to implement concurrency: segments instead of synchronized.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
__PARANAMER_DATA |
EMPTY_NAMES| 构造器和说明 |
|---|
CachingParanamer()
Uses a DefaultParanamer as the implementation it delegates to.
|
CachingParanamer(Paranamer delegate)
Specify a Paranamer instance to delegates to.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String[] |
lookupParameterNames(AccessibleObject methodOrConstructor)
Lookup the parameter names of a given method.
|
String[] |
lookupParameterNames(AccessibleObject methodOrCtor,
boolean throwExceptionIfMissing)
Lookup the parameter names of a given method.
|
protected Map<AccessibleObject,String[]> |
makeMethodCache() |
public CachingParanamer()
public CachingParanamer(Paranamer delegate)
delegate - the paranamer instance to useprotected Map<AccessibleObject,String[]> makeMethodCache()
public String[] lookupParameterNames(AccessibleObject methodOrConstructor)
ParanamerlookupParameterNames 在接口中 ParanamermethodOrConstructor - the Method or Constructor for which the parameter names
are looked up.public String[] lookupParameterNames(AccessibleObject methodOrCtor, boolean throwExceptionIfMissing)
ParanamerlookupParameterNames 在接口中 ParanamermethodOrCtor - the Method or Constructor for which the parameter names
are looked up.throwExceptionIfMissing - whether to throw an exception if no Paranamer data found (versus return null).Copyright © 2018. All rights reserved.