Package net.bytebuddy.description.method
Interface ParameterList.ForLoadedExecutable.Dispatcher
-
- All Known Implementing Classes:
ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm
,ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
- Enclosing class:
- ParameterList.ForLoadedExecutable<T>
protected static interface ParameterList.ForLoadedExecutable.Dispatcher
A dispatcher for creating descriptions of parameter lists and for evaluating the size of anjava.lang.reflect.Executable
's parameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ParameterList.ForLoadedExecutable.Dispatcher.CreationAction
A creation action for a dispatcher.static class
ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm
A dispatcher for a legacy VM that does support thejava.lang.reflect.Parameter
type.static class
ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
A dispatcher for a legacy VM that does not support thejava.lang.reflect.Parameter
type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParameterList<ParameterDescription.InDefinedShape>
describe(java.lang.reflect.Constructor<?> constructor, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes aConstructor
's parameters of the given VM.ParameterList<ParameterDescription.InDefinedShape>
describe(java.lang.reflect.Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes aMethod
's parameters of the given VM.int
getParameterCount(java.lang.Object executable)
Returns the amount of parameters of a given executable..
-
-
-
Method Detail
-
getParameterCount
int getParameterCount(java.lang.Object executable)
Returns the amount of parameters of a given executable..- Parameters:
executable
- The executable for which the amount of parameters should be found.- Returns:
- The amount of parameters of the given executable.
-
describe
ParameterList<ParameterDescription.InDefinedShape> describe(java.lang.reflect.Constructor<?> constructor, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes aConstructor
's parameters of the given VM.- Parameters:
constructor
- The constructor for which the parameters should be described.parameterAnnotationSource
- The parameter annotation source to query.- Returns:
- A list describing the constructor's parameters.
-
describe
ParameterList<ParameterDescription.InDefinedShape> describe(java.lang.reflect.Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes aMethod
's parameters of the given VM.- Parameters:
method
- The method for which the parameters should be described.parameterAnnotationSource
- The parameter annotation source to query.- Returns:
- A list describing the method's parameters.
-
-