Package net.bytebuddy.description.method
Interface ParameterDescription.ForLoadedParameter.Dispatcher
-
- All Known Implementing Classes:
ParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVm,ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
- Enclosing class:
- ParameterDescription.ForLoadedParameter<T extends AccessibleObject>
protected static interface ParameterDescription.ForLoadedParameter.DispatcherA dispatcher creating parameter descriptions based on the API that is available for the current JVM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classParameterDescription.ForLoadedParameter.Dispatcher.CreationActionA creation action for a dispatcher.static classParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVmA dispatcher for VMs that support thejava.lang.reflect.ParameterAPI for Java 8+.static classParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVmA dispatcher for a legacy VM that does not know thejava.lang.reflect.Parametertype that only throws exceptions on any property extraction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetModifiers(AccessibleObject executable, int index)Returns the given parameter's modifiers.StringgetName(AccessibleObject executable, int index)Returns the given parameter's implicit or explicit name.booleanisNamePresent(AccessibleObject executable, int index)Returnstrueif the given parameter has an explicit name.
-
-
-
Method Detail
-
getModifiers
int getModifiers(AccessibleObject executable, int index)
Returns the given parameter's modifiers.- Parameters:
executable- The executable to introspect.index- The parameter's index.- Returns:
- The parameter's modifiers.
-
isNamePresent
boolean isNamePresent(AccessibleObject executable, int index)
Returnstrueif the given parameter has an explicit name.- Parameters:
executable- The parameter to introspect.index- The parameter's index.- Returns:
trueif the given parameter has an explicit name.
-
getName
String getName(AccessibleObject executable, int index)
Returns the given parameter's implicit or explicit name.- Parameters:
executable- The parameter to introspect.index- The parameter's index.- Returns:
- The parameter's name.
-
-