Enum Class MonomorphizationScenarioDetector.Scenario
java.lang.Object
java.lang.Enum<MonomorphizationScenarioDetector.Scenario>
org.ek9lang.compiler.phase7.MonomorphizationScenarioDetector.Scenario
- All Implemented Interfaces:
Serializable, Comparable<MonomorphizationScenarioDetector.Scenario>, Constable
- Enclosing class:
MonomorphizationScenarioDetector
public static enum MonomorphizationScenarioDetector.Scenario
extends Enum<MonomorphizationScenarioDetector.Scenario>
The three monomorphization scenarios.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPre-built Java class exists - no generation needed.Extern generic type - generate delegation wrapper.User-defined generic - generate from EK9 source. -
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
-
SCENARIO_1_PREBUILT
Pre-built Java class exists - no generation needed. -
SCENARIO_2_EXTERN_DELEGATION
Extern generic type - generate delegation wrapper. -
SCENARIO_3_USER_DEFINED_SOURCE
User-defined generic - generate from EK9 source.
-
-
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
-