| Modifier and Type | Class and Description |
|---|---|
static class |
AnnotationParanamer.Jsr330Helper
This is a different class, because the @Inject jar may not be in the classpath.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
__PARANAMER_DATA |
EMPTY_NAMES| Constructor and Description |
|---|
AnnotationParanamer() |
AnnotationParanamer(Paranamer fallback) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getNamedValue(Annotation ann)
Override this if you want something other than JSR 330's Named annotation.
|
protected boolean |
isNamed(Annotation ann)
Override this if you want something other than JSR 330's Named annotation.
|
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 AnnotationParanamer()
public AnnotationParanamer(Paranamer fallback)
public String[] lookupParameterNames(AccessibleObject methodOrConstructor)
ParanamerlookupParameterNames in interface ParanamermethodOrConstructor - the Method or Constructor for which the parameter names
are looked up.public String[] lookupParameterNames(AccessibleObject methodOrCtor, boolean throwExceptionIfMissing)
ParanamerlookupParameterNames in interface 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).protected String getNamedValue(Annotation ann)
return ((Named) ann).value();
ann - the annotation in questionprotected boolean isNamed(Annotation ann)
return ann instanceof Named;
ann - the annotation in questionCopyright © 2007-2014. All Rights Reserved.