Enum Class SymbolGenus

java.lang.Object
java.lang.Enum<SymbolGenus>
org.ek9lang.compiler.symbols.SymbolGenus
All Implemented Interfaces:
Serializable, Comparable<SymbolGenus>, Constable

public enum SymbolGenus extends Enum<SymbolGenus>
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.
  • Enum Constant Details

    • GENERAL_APPLICATION

      public static final SymbolGenus GENERAL_APPLICATION
    • SERVICE_APPLICATION

      public static final SymbolGenus SERVICE_APPLICATION
    • COMPONENT

      public static final SymbolGenus COMPONENT
    • VALUE

      public static final SymbolGenus VALUE
    • CLASS

      public static final SymbolGenus CLASS
    • CLASS_TRAIT

      public static final SymbolGenus CLASS_TRAIT
    • CLASS_CONSTRAINED

      public static final SymbolGenus CLASS_CONSTRAINED
    • CLASS_ENUMERATION

      public static final SymbolGenus CLASS_ENUMERATION
    • RECORD

      public static final SymbolGenus RECORD
    • TYPE

      public static final SymbolGenus TYPE
    • FUNCTION

      public static final SymbolGenus FUNCTION
    • FUNCTION_TRAIT

      public static final SymbolGenus FUNCTION_TRAIT
    • TEXT_BASE

      public static final SymbolGenus TEXT_BASE
    • TEXT

      public static final SymbolGenus TEXT
    • SERVICE

      public static final SymbolGenus SERVICE
    • PROGRAM

      public static final SymbolGenus PROGRAM
    • META_DATA

      public static final SymbolGenus META_DATA
  • Method Details

    • values

      public static SymbolGenus[] 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

      public static SymbolGenus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDescription

      public String getDescription()