Enum Assigner.Refusing
- All Implemented Interfaces:
Serializable, Comparable<Assigner.Refusing>, java.lang.constant.Constable, Assigner
- Enclosing interface:
Assigner
An assigner that does not allow any assignments.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface Assigner
Assigner.EqualTypesOnly, Assigner.Refusing, Assigner.Typing -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface Assigner
DEFAULT, GENERICS_AWARE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) static Assigner.RefusingReturns the enum constant of this type with the specified name.static Assigner.Refusing[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Refusing
private Refusing()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
assign
public StackManipulation assign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing) - Specified by:
assignin interfaceAssigner- Parameters:
source- The original type that is to be transformed into thetargetType.target- The target type into which thesourceTypeis to be converted.typing- A hint whether the assignment should consider the runtime type of the source type, i.e. if type down or cross castings are allowed. If this hint is set, this is also an indication thatvoidto non-voidassignments are permitted.- Returns:
- A stack manipulation that transforms the
sourceTypeinto thetargetTypeif this is possible. An illegal stack manipulation otherwise.
-