protected static interface ParameterDescription.ForLoadedParameter.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
ParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVm
A dispatcher for VMs that support the
java.lang.reflect.Parameter API for Java 8+. |
static class |
ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
A dispatcher for a legacy VM that does not know the
java.lang.reflect.Parameter type that only throws
exceptions on any property extraction. |
Modifier and Type | Method and Description |
---|---|
int |
getModifiers(AccessibleObject executable,
int index)
Returns the given parameter's modifiers.
|
String |
getName(AccessibleObject executable,
int index)
Returns the given parameter's implicit or explicit name.
|
boolean |
isNamePresent(AccessibleObject executable,
int index)
Returns
true if the given parameter has an explicit name. |
int getModifiers(AccessibleObject executable, int index)
executable
- The executable to introspect.index
- The parameter's index.boolean isNamePresent(AccessibleObject executable, int index)
true
if the given parameter has an explicit name.executable
- The parameter to introspect.index
- The parameter's index.true
if the given parameter has an explicit name.String getName(AccessibleObject executable, int index)
executable
- The parameter to introspect.index
- The parameter's index.Copyright © 2014–2016. All rights reserved.