Enum This.Binder

java.lang.Object
java.lang.Enum<This.Binder>
net.bytebuddy.implementation.bind.annotation.This.Binder
All Implemented Interfaces:
Serializable, Comparable<This.Binder>, java.lang.constant.Constable, TargetMethodAnnotationDrivenBinder.ParameterBinder<This>
Enclosing class:
This

public static enum This.Binder extends Enum<This.Binder> implements TargetMethodAnnotationDrivenBinder.ParameterBinder<This>
A binder for handling the This annotation.
See Also:
  • Enum Constant Details

    • INSTANCE

      public static final This.Binder INSTANCE
      The singleton instance.
  • Method Details

    • values

      public static This.Binder[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static This.Binder valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getHandledType

      public Class<This> getHandledType()
      The annotation type that is handled by this parameter binder.
      Specified by:
      getHandledType in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<This>
      Returns:
      The Annotation.annotationType() handled by this parameter binder.
    • bind

      Creates a parameter binding for the given target parameter.
      Specified by:
      bind in interface TargetMethodAnnotationDrivenBinder.ParameterBinder<This>
      Parameters:
      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.
      Returns:
      A parameter binding for the requested target method parameter.