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 java.lang.reflect.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(java.lang.reflect.AccessibleObject executable, int index)Returns the given parameter's modifiers.java.lang.StringgetName(java.lang.reflect.AccessibleObject executable, int index)Returns the given parameter's implicit or explicit name.booleanisNamePresent(java.lang.reflect.AccessibleObject executable, int index)Returnstrueif the given parameter has an explicit name.
-
-
-
Method Detail
-
getModifiers
int getModifiers(java.lang.reflect.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(java.lang.reflect.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
java.lang.String getName(java.lang.reflect.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.
-
-