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
Top level type specs keyed by simple name (excludes synthetic types)
Lookup an instance dict by its simple name
List the dependencies
List the instance data dicts declared in this library
Lookup the mixin for the given type in this library
Convenience for types.get
Version of this library
Convenience for specs.get
Top level specs keyed by simple name (types and mixins)
Top level mixin specs keyed by simple name
Iterate the instances
Meta data for library
Dotted name of the library
Access all the resource files contained by this library
Return "lib:{name}" as identifier
abstract LibDepend[] depends()
List the dependencies
abstract Void eachInstance(|Dict| f)
Iterate the instances
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.
abstract Ref id()
Return "lib:{name}" as identifier
abstract Dict? instance(Str name, Bool checked)
Lookup an instance dict by its simple name
abstract Dict[] instances()
List the instance data dicts declared in this library
abstract Dict meta()
Meta data for library
abstract Spec? mixinFor(Spec type, Bool checked)
Lookup the mixin for the given type in this library
abstract SpecMap mixins()
Top level mixin specs keyed by simple name
abstract Str name()
Dotted name of the library
abstract Spec? spec(Str name, Bool checked)
Convenience for specs.get
abstract SpecMap specs()
Top level specs keyed by simple name (types and mixins)
abstract Spec? type(Str name, Bool checked)
Convenience for types.get
abstract SpecMap types()
Top level type specs keyed by simple name (excludes synthetic types)
abstract Version version()
Version of this library