Enum
classin packageklyn
public class Enum extends Object:
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()`.
Methods
| Modifier and Type |
Member |
Description |
| public static |
bind |
Binds an enum instance to its symbolic state name and returns the same instance. |
| public override |
toString |
Returns the canonical enum state name in the form `TypeName. |