type

SpecEnum

@Js
const mixin SpecEnum

Item metadata for an Enum spec

methods

each

Iterate the enum items by spec and string key

keys

List the string keys

spec

Lookup enum item spec by its string key

xmeta

Get the extended meta for the given enum item key.

Slot Details

each

abstract Void each(|Spec,Str| f)

Iterate the enum items by spec and string key

keys

abstract Str[] keys()

List the string keys

spec

abstract Spec? spec(Str key, Bool checked := true)

Lookup enum item spec by its string key

xmeta

abstract Dict? xmeta(Str? key := null, Bool checked := true)

Get the extended meta for the given enum item key. If key is null then get the extended meta for the enum spec itself. This method is only available if the requested by the LibNamespace.xmetaEnum otherwise an exception is raised.