Class TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S extends Annotation>

java.lang.Object
net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue<S>
Type Parameters:
S - The bound annotation's type.
All Implemented Interfaces:
TargetMethodAnnotationDrivenBinder.ParameterBinder<S>
Direct Known Subclasses:
TargetMethodAnnotationDrivenBinder.ParameterBinder.ForFixedValue.OfConstant
Enclosing interface:
TargetMethodAnnotationDrivenBinder.ParameterBinder<T extends Annotation>

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.