Package net.hydromatic.morel.compile
Enum BuiltIn.Constructor
- All Implemented Interfaces:
Serializable,Comparable<BuiltIn.Constructor>,java.lang.constant.Constable
- Enclosing class:
BuiltIn
Built-in constructor of a datatype.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal BuiltIn.Datatype(package private) final Function<BuiltIn.DataTypeHelper, Type.Key> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstructor(BuiltIn.Datatype datatype, String constructor) privateConstructor(BuiltIn.Datatype datatype, String constructor, Function<BuiltIn.DataTypeHelper, Type.Key> typeFunction) -
Method Summary
Modifier and TypeMethodDescriptionstatic BuiltIn.ConstructorReturns the enum constant of this type with the specified name.static BuiltIn.Constructor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOOL_FALSE
-
BOOL_TRUE
-
DESCENDING_DESC
-
LIST_NIL
-
LIST_CONS
-
OPTION_SOME
-
OPTION_NONE
-
ORDER_LESS
-
ORDER_EQUAL
-
ORDER_GREATER
-
-
Field Details
-
datatype
-
constructor
-
typeFunction
-
-
Constructor Details
-
Constructor
-
Constructor
private Constructor(BuiltIn.Datatype datatype, String constructor, Function<BuiltIn.DataTypeHelper, Type.Key> typeFunction)
-
-
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
-