public static enum This.Binder extends Enum<This.Binder> implements TargetMethodAnnotationDrivenBinder.ParameterBinder<This>
This
annotation.TargetMethodAnnotationDrivenBinder| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDelegationBinder.ParameterBinding<?> |
bind(AnnotationDescription.Loadable<This> annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
Class<This> |
getHandledType()
The annotation type that is handled by this parameter binder.
|
static This.Binder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static This.Binder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final This.Binder INSTANCE
public static This.Binder[] values()
for (This.Binder c : This.Binder.values()) System.out.println(c);
public static This.Binder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<This> getHandledType()
TargetMethodAnnotationDrivenBinder.ParameterBindergetHandledType in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<This>Annotation.annotationType() handled by this parameter binder.public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<This> annotation, int targetParameterIndex, MethodDescription source, MethodDescription target, Instrumentation.Target instrumentationTarget, Assigner assigner)
TargetMethodAnnotationDrivenBinder.ParameterBinderbind in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<This>annotation - The annotation that was cause for the delegation to this argument binder.targetParameterIndex - The index of the target method's parameter to be bound.source - The source method that is bound to the target method.target - Tge target method that is subject to be bound by the source method.instrumentationTarget - The target of the current instrumentation that is subject to this binding.assigner - An assigner that can be used for applying the binding.Copyright © 2014. All rights reserved.