S - The bound annotation's type.public abstract static class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation> extends Object implements TargetMethodAnnotationDrivenBinder.ParameterBinder<S>
Implements a parameter binder that binds a fixed value to a parameter with a given annotation.
 This binder is only capable to store values that can either be expressed as Java byte code or as a constant pool value. This
 includes primitive types, String values, Class values which can also be expressed as TypeDescription
 instances or method handles and method types for classes of a version at least of Java 7. The latter instances can also be
 expressed as unloaded JavaConstant representations.
 
 Important: When supplying a method handle or a method type, all types that are implied must be visible to the instrumented
 type or an IllegalAccessException will be thrown at runtime.
 
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant<U extends Annotation>
 A parameter binder that binds a fixed value to a parameter annotation when using a  MethodDelegation. | 
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFieldBinding<S extends Annotation>, TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>DEFAULTS| Constructor and Description | 
|---|
| ForFixedValue() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract Object | bind(AnnotationDescription.Loadable<S> annotation,
    MethodDescription source,
    ParameterDescription target)Resolves a value for the given annotation on a parameter that is processed by a  MethodDelegation. | 
| MethodDelegationBinder.ParameterBinding<?> | bind(AnnotationDescription.Loadable<S> annotation,
    MethodDescription source,
    ParameterDescription target,
    Implementation.Target implementationTarget,
    Assigner assigner,
    Assigner.Typing typing)Creates a parameter binding for the given target parameter. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHandledTypepublic MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing)
bind in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<S extends Annotation>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.@MaybeNull protected abstract Object bind(AnnotationDescription.Loadable<S> annotation, MethodDescription source, ParameterDescription target)
MethodDelegation.annotation - The annotation that triggered this binding.source - The method for which a delegation is currently bound.target - The parameter for which a value is bound.null for binding this value.Copyright © 2014–2024. All rights reserved.