Enumized

interface Enumized<out T : Enumish>

Supertype injected into every @Enumize hierarchy root, connecting values to their kinds.

Properties

Link copied to clipboard

Shortcut for asEnumish().label — the counterpart of Enum.name on the value side.

Functions

Link copied to clipboard
abstract fun asEnumish(): T

Returns the kind of this value — the singleton representing the leaf this value belongs to. Values of subtypes of a non-final leaf are absorbed into that leaf's kind.