Options
All
  • Public
  • Public/Protected
  • All
Menu

Class QualifiedNameCache

Manages a cached map [qualified name: string] -> list of structures, with the possibility to retrieve (resolve) based on qualified name.

Used to speed up resolution of by-(qualified-)name references.

Hierarchy

  • QualifiedNameCache

Index

Constructors

constructor

Methods

addStructureToCache

  • addStructureToCache(structure: IStructure): void
  • Updates the cache as far as it is affected by the addition or rename of this element. Child entries are updated automatically as well.

    Parameters

    Returns void

keys

  • keys(): ReadonlyArray<string>
  • Returns ReadonlyArray<string>

observe

  • observe(listener: function): void
  • Parameters

    • listener: function
        • (): void
        • Returns void

    Returns void

removeStructureFromCache

  • removeStructureFromCache(structure: IStructure): void
  • Removes the structure and its children from the cache.

    Parameters

    Returns void

resolve

  • resolve(structureTypeName: string, qualifiedName: string | null): IAbstractElement | null
  • Parameters

    • structureTypeName: string

      type name in syntax "MetaModelname$ElementName"

    • qualifiedName: string | null

    Returns IAbstractElement | null

    The element found, or null when no element is found.

size

  • size(): number
  • Returns number

Generated using TypeDoc