public class AdaptiveParanamer extends Object implements Paranamer
Modifier and Type | Field and Description |
---|---|
static String |
__PARANAMER_DATA |
EMPTY_NAMES
Constructor and Description |
---|
AdaptiveParanamer()
Use DefaultParanamer ahead of BytecodeReadingParanamer
|
AdaptiveParanamer(Paranamer... paranamers)
Prioritize a series of Paranamers
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String __PARANAMER_DATA
public AdaptiveParanamer()
public AdaptiveParanamer(Paranamer... paranamers)
paranamers
- the paranamers in questionpublic String[] lookupParameterNames(AccessibleObject methodOrConstructor)
Paranamer
lookupParameterNames
in interface Paranamer
methodOrConstructor
- the Method
or Constructor
for which the parameter names
are looked up.public String[] lookupParameterNames(AccessibleObject methodOrCtor, boolean throwExceptionIfMissing)
Paranamer
lookupParameterNames
in interface Paranamer
methodOrCtor
- 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.