Enum Class Argument.BindingMechanic

java.lang.Object
java.lang.Enum<Argument.BindingMechanic>
net.bytebuddy.implementation.bind.annotation.Argument.BindingMechanic
All Implemented Interfaces:
Serializable, Comparable<Argument.BindingMechanic>, Constable
Enclosing class:
Argument

public static enum Argument.BindingMechanic extends Enum<Argument.BindingMechanic>
Determines if a parameter binding should be considered for resolving ambiguous method bindings.
See Also:
  • Enum Constant Details

  • Constructor Details

    • BindingMechanic

      private BindingMechanic()
  • Method Details

    • values

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

      public static Argument.BindingMechanic valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • makeBinding

      protected abstract MethodDelegationBinder.ParameterBinding<?> makeBinding(TypeDescription.Generic source, TypeDescription.Generic target, int sourceParameterIndex, Assigner assigner, Assigner.Typing typing, int parameterOffset)
      Creates a binding that corresponds to this binding mechanic.
      Parameters:
      source - The source type to be bound.
      target - The target type the sourceType is to be bound to.
      sourceParameterIndex - The index of the source parameter.
      assigner - The assigner that is used to perform the assignment.
      typing - Indicates if dynamic type castings should be attempted for incompatible assignments.
      parameterOffset - The offset of the source method's parameter.
      Returns:
      A binding considering the chosen binding mechanic.