|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Paranamer
Paranamer allows lookups of methods and constructors by parameter names.
Field Summary | |
---|---|
static String[] |
EMPTY_NAMES
|
static int |
NO_PARAMETER_NAMES_FOR_CLASS
Deprecated. |
static int |
NO_PARAMETER_NAMES_FOR_CLASS_AND_MEMBER
Deprecated. |
static int |
NO_PARAMETER_NAMES_LIST
Deprecated. |
static int |
PARAMETER_NAMES_FOUND
Deprecated. |
Method Summary | |
---|---|
int |
areParameterNamesAvailable(Class clazz,
String constructorOrMethodName)
Deprecated. since 1.5, use the overloaded lookupParameterNames instead |
String[] |
lookupParameterNames(AccessibleObject methodOrConstructor)
Lookup the parameter names of a given method. |
String[] |
lookupParameterNames(AccessibleObject methodOrConstructor,
boolean throwExceptionIfMissing)
Lookup the parameter names of a given method. |
Field Detail |
---|
static final String[] EMPTY_NAMES
static final int NO_PARAMETER_NAMES_FOR_CLASS
static final int NO_PARAMETER_NAMES_FOR_CLASS_AND_MEMBER
static final int NO_PARAMETER_NAMES_LIST
static final int PARAMETER_NAMES_FOUND
Method Detail |
---|
int areParameterNamesAvailable(Class clazz, String constructorOrMethodName)
Known issues:
lookupParameterNames(AccessibleObject)
will succeed.lookupParameterNames(AccessibleObject)
will fail.
clazz
- the name of the class to which the method or constructor belongs.constructorOrMethodName
- the base name of the Method
or Constructor
. If a
request is being made for the constructor, this should be
"<init>"
.
NullPointerException
- if either parameter is null.
SecurityException
- if reflection is not permitted on clazzString[] lookupParameterNames(AccessibleObject methodOrConstructor)
methodOrConstructor
- the Method
or Constructor
for which the parameter names
are looked up.
ParameterNamesNotFoundException
- if no parameter names were found.
NullPointerException
- if the parameter is null.
SecurityException
- if reflection is not permitted on the containing Class
of the
parameterString[] lookupParameterNames(AccessibleObject methodOrConstructor, boolean throwExceptionIfMissing)
methodOrConstructor
- the Method
or Constructor
for which the parameter names
are looked up.
ParameterNamesNotFoundException
- if no parameter names were found.
NullPointerException
- if the parameter is null.
SecurityException
- if reflection is not permitted on the containing Class
of the
parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |