public static enum DefaultCall.Binder extends Enum<DefaultCall.Binder> implements TargetMethodAnnotationDrivenBinder.ParameterBinder<DefaultCall>
DefaultCall
annotation.TargetMethodAnnotationDrivenBinder
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.ParameterBinding<?> |
bind(DefaultCall annotation,
int targetParameterIndex,
MethodDescription source,
MethodDescription target,
Instrumentation.Target instrumentationTarget,
Assigner assigner)
Creates a parameter binding for the given target parameter.
|
Class<DefaultCall> |
getHandledType()
The annotation type that is handled by this parameter binder.
|
static DefaultCall.Binder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultCall.Binder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultCall.Binder INSTANCE
public static DefaultCall.Binder[] values()
for (DefaultCall.Binder c : DefaultCall.Binder.values()) System.out.println(c);
public static DefaultCall.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<DefaultCall> getHandledType()
TargetMethodAnnotationDrivenBinder.ParameterBinder
getHandledType
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<DefaultCall>
Annotation.annotationType()
handled by this parameter binder.public MethodDelegationBinder.ParameterBinding<?> bind(DefaultCall annotation, int targetParameterIndex, MethodDescription source, MethodDescription target, Instrumentation.Target instrumentationTarget, Assigner assigner)
TargetMethodAnnotationDrivenBinder.ParameterBinder
bind
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<DefaultCall>
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.