Package org.ek9lang.compiler.symbols
Enum Class SymbolGenus
- All Implemented Interfaces:
Serializable
,Comparable<SymbolGenus>
,Constable
Typically, used on aggregates because we might use a AggregateSymbol.
But when coming to process it we need to ensure other aggregate symbols that extend it are of compatible genus i.e a class can only extend a base class not a style but one style could extend another style. We can also use this information when parsing the structure and then doing the semantic analysis before the IR node generation. We can modify output by using this information.
Note that 'Any' is designed to allow more general 'Object' type use and the super of all supers.
-
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
Modifier and TypeMethodDescriptionstatic SymbolGenus
Returns the enum constant of this class with the specified name.static SymbolGenus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GENERAL_APPLICATION
-
SERVICE_APPLICATION
-
COMPONENT
-
VALUE
-
CLASS
-
CLASS_TRAIT
-
CLASS_CONSTRAINED
-
CLASS_ENUMERATION
-
RECORD
-
TYPE
-
FUNCTION
-
FUNCTION_TRAIT
-
TEXT_BASE
-
TEXT
-
SERVICE
-
PROGRAM
-
META_DATA
-
ANY
-
-
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
-
getDescription
-