Enum AllArguments.Assignment
- java.lang.Object
-
- java.lang.Enum<AllArguments.Assignment>
-
- net.bytebuddy.implementation.bind.annotation.AllArguments.Assignment
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AllArguments.Assignment>
- Enclosing class:
- AllArguments
public static enum AllArguments.Assignment extends java.lang.Enum<AllArguments.Assignment>
A directive for how anAllArguments
annotation on an array is to be interpreted.
-
-
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()
Returnstrue
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.
-
-
-
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 aSTRICT
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.
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
isStrict
protected boolean isStrict()
Returnstrue
if this assignment is strict.- Returns:
true
if this assignment is strict.
-
-