protected static interface ParameterDescription.ForLoadedParameter.Dispatcher
Modifier and Type | Interface and Description |
---|---|
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. |
static class |
ParameterDescription.ForLoadedParameter.Dispatcher.ForModernVm
A dispatcher for VMs that support the
java.lang.reflect.Parameter API for Java 8+. |
Modifier and Type | Method and Description |
---|---|
int |
getModifiers(Object executable,
int index)
Returns the given parameter's modifiers.
|
String |
getName(Object executable,
int index)
Returns the given parameter's implicit or explicit name.
|
boolean |
isNamePresent(Object executable,
int index)
Returns
true if the given parameter has an explicit name. |
int getModifiers(Object executable, int index)
executable
- The executable to introspect.index
- The parameter's index.boolean isNamePresent(Object 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.Copyright © 2014–2016. All rights reserved.