type

Lib

@Js
const mixin Lib : Dict

Versioned library module of specs and defs.

Lib dict representation:

  • id: Ref "lib:{name}"
  • spec: Ref "sys::Lib"
  • loaded: marker tag if loaded into memory
  • meta

methods

depends

List the dependencies

eachInstance

Iterate the instances

files

Access all the resource files contained by this library.

id

Return "lib:{name}" as identifier

instance

Lookup an instance dict by its simple name

instances

List the instance data dicts declared in this library

meta

Meta data for library

mixinFor

Lookup the mixin for the given type in this library

mixins

Top level mixin specs keyed by simple name

name

Dotted name of the library

spec

Convenience for specs.get

specs

Top level specs keyed by simple name (types and mixins)

type

Convenience for types.get

types

Top level type specs keyed by simple name (excludes synthetic types)

version

Version of this library

Slot Details

depends

abstract LibDepend[] depends()

List the dependencies

eachInstance

abstract Void eachInstance(|Dict| f)

Iterate the instances

files

abstract LibFiles files()

Access all the resource files contained by this library. Resources are any files included in the libs's zip file excluding xeto files. This API is only available in server environments.

id

abstract override Ref id()

Return "lib:{name}" as identifier

instance

abstract Dict? instance(Str name, Bool checked := true)

Lookup an instance dict by its simple name

instances

abstract Dict[] instances()

List the instance data dicts declared in this library

meta

abstract Dict meta()

Meta data for library

mixinFor

abstract Spec? mixinFor(Spec type, Bool checked := true)

Lookup the mixin for the given type in this library

mixins

abstract SpecMap mixins()

Top level mixin specs keyed by simple name

name

abstract Str name()

Dotted name of the library

spec

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

Convenience for specs.get

specs

abstract SpecMap specs()

Top level specs keyed by simple name (types and mixins)

type

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

Convenience for types.get

types

abstract SpecMap types()

Top level type specs keyed by simple name (excludes synthetic types)

version

abstract Version version()

Version of this library