Enum Class AllArguments.Assignment
java.lang.Object
java.lang.Enum<AllArguments.Assignment>
net.bytebuddy.implementation.bind.annotation.AllArguments.Assignment
- All Implemented Interfaces:
Serializable
,Comparable<AllArguments.Assignment>
,Constable
- Enclosing class:
- AllArguments
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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Determines if this assignment is strict. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isStrict()
Returnstrue
if this assignment is strict.static AllArguments.Assignment
Returns the enum constant of this class with the specified name.static AllArguments.Assignment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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.
-
-
Field Details
-
strict
private final boolean strictDetermines 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
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
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 nameNullPointerException
- if the argument is null
-
isStrict
protected boolean isStrict()Returnstrue
if this assignment is strict.- Returns:
true
if this assignment is strict.
-