Enum AllArguments.Assignment

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

public static enum AllArguments.Assignment extends Enum<AllArguments.Assignment>
A directive for how an AllArguments annotation on an array is to be interpreted.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Other than a STRICT assignment, a slack assignment simply ignores non-bindable parameters and does not include them in the target array.
    A strict assignment attempts to include all parameter values of the source method.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    Determines if this assignment is strict.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Assignment(boolean strict)
    Creates a new assignment type.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    Returns true if this assignment is strict.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • STRICT

      public static final AllArguments.Assignment STRICT
      A strict assignment attempts to include all parameter values of the source method. If only one of these parameters is not assignable to the component type of the annotated array, the method is considered as non-bindable.
    • SLACK

      public static final AllArguments.Assignment SLACK
      Other than a STRICT assignment, a slack assignment simply ignores non-bindable parameters and does not include them in the target array. In the most extreme case where no source method parameter is assignable to the component type of the annotated array, the array that is assigned to the target parameter is empty.
  • Field Details

    • strict

      private final boolean strict
      Determines if this assignment is strict.
  • Constructor Details

    • Assignment

      private Assignment(boolean strict)
      Creates a new assignment type.
      Parameters:
      strict - true if this assignment is strict.
  • Method Details

    • values

      public static AllArguments.Assignment[] 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 AllArguments.Assignment 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
    • isStrict

      protected boolean isStrict()
      Returns true if this assignment is strict.
      Returns:
      true if this assignment is strict.