protected static interface ParameterDescription.ForLoadedParameter.Dispatcher
java.lang.reflect.Parameter
instances.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 |
---|---|
List<Annotation> |
getDeclaredAnnotations(Object parameter)
Returns the given parameter's annotations.
|
Object |
getDeclaringExecutable(Object parameter)
Returns the given parameter's declaring exectuable, i.e, method or constructor.
|
int |
getModifiers(Object parameter)
Returns the given parameter's modifiers.
|
String |
getName(Object parameter)
Returns the given parameter's implicit or explicit name.
|
boolean |
isNamePresent(Object parameter)
Returns
true if the given parameter has an explicit name. |
int getModifiers(Object parameter)
parameter
- The parameter to introspect.boolean isNamePresent(Object parameter)
true
if the given parameter has an explicit name.parameter
- The parameter to introspect.true
if the given parameter has an explicit name.String getName(Object parameter)
parameter
- The parameter to introspect.List<Annotation> getDeclaredAnnotations(Object parameter)
parameter
- The parameter to introspect.Copyright © 2014–2015. All rights reserved.