Package net.bytebuddy.description.method
Class ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm
- java.lang.Object
-
- net.bytebuddy.description.method.ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm
-
- All Implemented Interfaces:
ParameterList.ForLoadedExecutable.Dispatcher
- Enclosing interface:
- ParameterList.ForLoadedExecutable.Dispatcher
public static class ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm extends java.lang.Object implements ParameterList.ForLoadedExecutable.Dispatcher
A dispatcher for a legacy VM that does support thejava.lang.reflect.Parameter
type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.method.ParameterList.ForLoadedExecutable.Dispatcher
ParameterList.ForLoadedExecutable.Dispatcher.CreationAction, ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm, ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForJava8CapableVm(java.lang.reflect.Method getParameterCount)
Creates a new dispatcher for a modern VM.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterList<ParameterDescription.InDefinedShape>
describe(java.lang.reflect.Constructor<?> constructor)
Describes aConstructor
's parameters of the given VM.ParameterList<ParameterDescription.InDefinedShape>
describe(java.lang.reflect.Method method)
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
public int getParameterCount(java.lang.Object executable)
Description copied from interface:ParameterList.ForLoadedExecutable.Dispatcher
Returns the amount of parameters of a given executable..- Specified by:
getParameterCount
in interfaceParameterList.ForLoadedExecutable.Dispatcher
- Parameters:
executable
- The executable for which the amount of parameters should be found.- Returns:
- The amount of parameters of the given executable.
-
describe
public ParameterList<ParameterDescription.InDefinedShape> describe(java.lang.reflect.Constructor<?> constructor)
Description copied from interface:ParameterList.ForLoadedExecutable.Dispatcher
Describes aConstructor
's parameters of the given VM.- Specified by:
describe
in interfaceParameterList.ForLoadedExecutable.Dispatcher
- Parameters:
constructor
- The constructor for which the parameters should be described.- Returns:
- A list describing the constructor's parameters.
-
describe
public ParameterList<ParameterDescription.InDefinedShape> describe(java.lang.reflect.Method method)
Description copied from interface:ParameterList.ForLoadedExecutable.Dispatcher
Describes aMethod
's parameters of the given VM.- Specified by:
describe
in interfaceParameterList.ForLoadedExecutable.Dispatcher
- Parameters:
method
- The method for which the parameters should be described.- Returns:
- A list describing the method's parameters.
-
-