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