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.DispatcherA 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 classParameterList.ForLoadedExecutable.Dispatcher.CreationActionA creation action for a dispatcher.static classParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVmA dispatcher for a legacy VM that does support thejava.lang.reflect.Parametertype.static classParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVmA dispatcher for a legacy VM that does not support thejava.lang.reflect.Parametertype.
-
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.intgetParameterCount(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.
-
-