Enum Class CollectionElementPromoter.PromotionNeed
java.lang.Object
java.lang.Enum<CollectionElementPromoter.PromotionNeed>
org.ek9lang.compiler.phase7.support.CollectionElementPromoter.PromotionNeed
- All Implemented Interfaces:
Serializable, Comparable<CollectionElementPromoter.PromotionNeed>, Constable
- Enclosing class:
CollectionElementPromoter
public static enum CollectionElementPromoter.PromotionNeed
extends Enum<CollectionElementPromoter.PromotionNeed>
What a value of one type needs to enter a slot of another (EXPR-11).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNeither; phase 3 should have refused this, so each caller decides how loudly to say so.Directly assignable, so the value is used as it is.Not directly assignable but coercible, so a#^promotion is inserted. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Directly assignable, so the value is used as it is. -
PROMOTE
Not directly assignable but coercible, so a#^promotion is inserted. -
INCOMPATIBLE
Neither; phase 3 should have refused this, so each caller decides how loudly to say so.
-
-
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
-