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.Dispatcher
A 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 class
ParameterDescription.ForLoadedParameter.Dispatcher.CreationAction
A creation action for a dispatcher.static class
ParameterDescription.ForLoadedParameter.Dispatcher.ForJava8CapableVm
A dispatcher for VMs that support thejava.lang.reflect.Parameter
API for Java 8+.static class
ParameterDescription.ForLoadedParameter.Dispatcher.ForLegacyVm
A dispatcher for a legacy VM that does not know thejava.lang.reflect.Parameter
type that only throws exceptions on any property extraction.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getModifiers(java.lang.reflect.AccessibleObject executable, int index)
Returns the given parameter's modifiers.java.lang.String
getName(java.lang.reflect.AccessibleObject executable, int index)
Returns the given parameter's implicit or explicit name.boolean
isNamePresent(java.lang.reflect.AccessibleObject executable, int index)
Returnstrue
if 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)
Returnstrue
if the given parameter has an explicit name.- Parameters:
executable
- The parameter to introspect.index
- The parameter's index.- Returns:
true
if 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.
-
-