public static enum DefaultMethod.Binder extends java.lang.Enum<DefaultMethod.Binder> implements TargetMethodAnnotationDrivenBinder.ParameterBinder<DefaultMethod>
DefaultMethod
annotation.Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultMethod.Binder.DelegationMethod
Loads the delegation method constant onto the stack.
|
protected static interface |
DefaultMethod.Binder.MethodLocator
A method locator is responsible for creating the super method call.
|
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends java.lang.annotation.Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends java.lang.annotation.Annotation>
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Field and Description |
---|---|
private static MethodDescription.InDefinedShape |
CACHED
The
DefaultMethod.cached() property. |
private static MethodDescription.InDefinedShape |
NULL_IF_IMPOSSIBLE
The
DefaultMethod.nullIfImpossible() property. |
private static MethodDescription.InDefinedShape |
PRIVILEGED
The
DefaultMethod.privileged() property. |
private static MethodDescription.InDefinedShape |
TARGET_TYPE
The
DefaultMethod.targetType() property. |
DEFAULTS
Modifier and Type | Method and Description |
---|---|
MethodDelegationBinder.ParameterBinding<?> |
bind(AnnotationDescription.Loadable<DefaultMethod> annotation,
MethodDescription source,
ParameterDescription target,
Implementation.Target implementationTarget,
Assigner assigner,
Assigner.Typing typing)
Creates a parameter binding for the given target parameter.
|
java.lang.Class<DefaultMethod> |
getHandledType()
The annotation type that is handled by this parameter binder.
|
static DefaultMethod.Binder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DefaultMethod.Binder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultMethod.Binder INSTANCE
private static final MethodDescription.InDefinedShape CACHED
DefaultMethod.cached()
property.private static final MethodDescription.InDefinedShape PRIVILEGED
DefaultMethod.privileged()
property.private static final MethodDescription.InDefinedShape TARGET_TYPE
DefaultMethod.targetType()
property.private static final MethodDescription.InDefinedShape NULL_IF_IMPOSSIBLE
DefaultMethod.nullIfImpossible()
property.public static DefaultMethod.Binder[] values()
for (DefaultMethod.Binder c : DefaultMethod.Binder.values()) System.out.println(c);
public static DefaultMethod.Binder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<DefaultMethod> getHandledType()
getHandledType
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<DefaultMethod>
Annotation.annotationType()
handled by this parameter binder.public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<DefaultMethod> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)
bind
in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<DefaultMethod>
annotation
- The annotation that was cause for the delegation to this argument binder.source
- The intercepted source method.target
- Tge target parameter that is subject to be bound to
intercepting the source
method.implementationTarget
- The target of the current implementation that is subject to this binding.assigner
- An assigner that can be used for applying the binding.typing
- The typing to apply.