Enum AllArguments.Assignment

    • Enum Constant Summary

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

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

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isStrict()
      Returns true if this assignment is strict.
      static AllArguments.Assignment valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AllArguments.Assignment[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • 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 Detail

      • strict

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

      • Assignment

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

      • values

        public static AllArguments.Assignment[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AllArguments.Assignment c : AllArguments.Assignment.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AllArguments.Assignment valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isStrict

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