Package dev.guillermo.gradle.language.c
Enum Class CDialect
- All Implemented Interfaces:
Serializable,Comparable<CDialect>,Constable
Dialect of C
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
DEFAULT_DIALECT
The default C dialect. -
C90
The default C90 dialect. -
C99
The default C99 dialect. -
C11
The default C11 dialect. -
C17
The default C17 dialect. -
C23
The default C23 dialect.
-
-
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
-
from
Tries to convert a string into a valid dialect of C.- Parameters:
dialect- The string to convert- Returns:
- An optional dialect of C.
-