type

SpecSlots

@Js
const mixin SpecSlots

SpecSlots is a map of named Specs

methods

each

Iterate through the children

eachWhile

Iterate through the children until function returns non-null

get

Get the child slot spec

has

Return if the given slot name is defined.

isEmpty

Return if slots are empty

missing

Return if the given slot name is undefined.

names

Convenience to list the slots names; prefer each.

Slot Details

each

abstract Void each(|Spec| f)

Iterate through the children

eachWhile

abstract Obj? eachWhile(|Spec->Obj?| f)

Iterate through the children until function returns non-null

get

abstract Spec? get(Str name, Bool checked := true)

Get the child slot spec

has

abstract Bool has(Str name)

Return if the given slot name is defined.

isEmpty

abstract Bool isEmpty()

Return if slots are empty

missing

abstract Bool missing(Str name)

Return if the given slot name is undefined.

names

abstract Str[] names()

Convenience to list the slots names; prefer each.