type
SpecMap
@Js
const mixin SpecMap
SpecMap is a map of named Specs
NOTE: in most cases name keys match the Spec.name of slot specs themselves. However, in cases where the slot name is an auto-name of "_0", "_1", etc its possible that the slot name keys do not match their slot names. This occurs when inheriting auto-named slots. The spec names are assigned uniquely per type, but when merged by inheritance might be assigned new unique names. This often occurs in queries such as point queries.
methods
| each |
Iterate through the specs with name key. |
|---|---|
| eachWhile |
Iterate through the specs until function returns non-null. |
| empty |
Empty spec map |
| get |
Get the spec keyed by given name. |
| getAll |
Get all the specs by name if there are naming collisions. |
| getQualified |
Get the spec using its qualified name. |
| has |
Return if the given name is defined. |
| isEmpty |
Return if slots are empty |
| list |
List the specs; prefer |
| missing |
Return if the given name is undefined. |
| names |
Convenience to list the spec names in this map; prefer |
| toStr |
Debug string |
Slot Details
each
eachWhile
empty
static SpecMap empty()
Empty spec map
get
getAll
getQualified
has
isEmpty
abstract Bool isEmpty()
Return if slots are empty
list
abstract Spec[] list()
List the specs; prefer each NOTE: the names may not match slots names
missing
names
toStr
virtual override Str toStr()
Debug string