Enum
classin packageklyn
public class Enum extends Object:
└ Enum

Base class for language enumerations.

Enum values are singleton instances stored as static readonly fields on the generated enum class. The compiler injects calls to Enum.bind(...) to associate the symbolic state name used by toString().

Properties inherited from Object: type
Methods
Modifier and Type Member Description
public static bind
bind(instance as Enum, stateName as String, typeName as String = "") as Enum:
Binds an enum instance to its symbolic state name and returns the same instance.
public override toString
toString() as String:
Returns the canonical enum state name in the form `TypeName.
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml