@HashCodeAndEqualsPlugin.Enhance public static class ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm extends Object implements ParameterList.ForLoadedExecutable.Dispatcher
java.lang.reflect.Parameter
type.ParameterList.ForLoadedExecutable.Dispatcher.CreationAction, ParameterList.ForLoadedExecutable.Dispatcher.ForJava8CapableVm, ParameterList.ForLoadedExecutable.Dispatcher.ForLegacyVm
Modifier | Constructor and Description |
---|---|
protected |
ForJava8CapableVm(Method getParameterCount)
Creates a new dispatcher for a modern VM.
|
Modifier and Type | Method and Description |
---|---|
ParameterList<ParameterDescription.InDefinedShape> |
describe(Constructor<?> constructor,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes a
Constructor 's parameters of the given VM. |
ParameterList<ParameterDescription.InDefinedShape> |
describe(Method method,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Describes a
Method 's parameters of the given VM. |
int |
getParameterCount(Object executable)
Returns the amount of parameters of a given executable..
|
protected ForJava8CapableVm(Method getParameterCount)
getParameterCount
- The java.lang.reflect.Executable#getParameterCount()
method.public int getParameterCount(Object executable)
getParameterCount
in interface ParameterList.ForLoadedExecutable.Dispatcher
executable
- The executable for which the amount of parameters should be found.public ParameterList<ParameterDescription.InDefinedShape> describe(Constructor<?> constructor, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Constructor
's parameters of the given VM.describe
in interface ParameterList.ForLoadedExecutable.Dispatcher
constructor
- The constructor for which the parameters should be described.parameterAnnotationSource
- The parameter annotation source to query.public ParameterList<ParameterDescription.InDefinedShape> describe(Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Method
's parameters of the given VM.describe
in interface ParameterList.ForLoadedExecutable.Dispatcher
method
- The method for which the parameters should be described.parameterAnnotationSource
- The parameter annotation source to query.Copyright © 2014–2018. All rights reserved.