public static class ParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVm extends Object implements ParameterDescription.ForLoadedParameter.Dispatcher
java.lang.reflect.Parameter
API for Java 8+.ParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVm, ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
Modifier | Constructor and Description |
---|---|
protected |
ForJava8CapableVm(Method getParameters,
Method getName,
Method isNamePresent,
Method getModifiers)
Creates a new dispatcher for a modern VM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
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.
|
int |
hashCode() |
boolean |
isNamePresent(AccessibleObject executable,
int index)
Returns
true if the given parameter has an explicit name. |
String |
toString() |
protected ForJava8CapableVm(Method getParameters, Method getName, Method isNamePresent, Method getModifiers)
getParameters
- A reference to java.lang.reflect.Executable#getTypeArguments
.getName
- A reference to java.lang.reflect.Parameter#getName
.isNamePresent
- A reference to java.lang.reflect.Parameter#isNamePresent
.getModifiers
- A reference to java.lang.reflect.Parameter#getModifiers
.public int getModifiers(AccessibleObject executable, int index)
ParameterDescription.ForLoadedParameter.Dispatcher
getModifiers
in interface ParameterDescription.ForLoadedParameter.Dispatcher
executable
- The executable to introspect.index
- The parameter's index.public boolean isNamePresent(AccessibleObject executable, int index)
ParameterDescription.ForLoadedParameter.Dispatcher
true
if the given parameter has an explicit name.isNamePresent
in interface ParameterDescription.ForLoadedParameter.Dispatcher
executable
- The parameter to introspect.index
- The parameter's index.true
if the given parameter has an explicit name.public String getName(AccessibleObject executable, int index)
ParameterDescription.ForLoadedParameter.Dispatcher
getName
in interface ParameterDescription.ForLoadedParameter.Dispatcher
executable
- The parameter to introspect.index
- The parameter's index.Copyright © 2014–2016. All rights reserved.