Class MapUcrxClass<TEntriesModel, TExtraModel>

Type Parameters

Hierarchy

Constructors

Accessors

  • get baseClass(): undefined | EsClass<Args<string>>
  • The base class this one extends, if any.

    Returns undefined | EsClass<Args<string>>

  • get classConstructor(): EsConstructor<TArgs>
  • Class constructor.

    Returns EsConstructor<TArgs>

  • get symbol(): EsSymbol<EsClassNaming<TArgs>>
  • Unique class symbol.

    Returns EsSymbol<EsClassNaming<TArgs>>

Methods

  • Adds class member.

    Called typically by member declaration method.

    Type Parameters

    • TMember extends EsMember<THandle>

      Member type.

    • THandle = HandleOf<TMember>

      Type of member handle.

    Parameters

    • member: TMember

      Member to add.

    • handle: THandle

      Member handle.

    • declaration: EsSnippet

    Returns EsMemberRef<TMember, THandle>

    Declared member reference.

    Throw

    TypeError if the member already declared in this class.

  • Emits class declaration statement.

    Returns EsSnippet

    Class declaration statement.

  • Declares class.

    Returns EsSnippet

    Class declaration statement.

  • Emits class reference.

    Parameters

    • scope: EsScope

      Code emission scope.

    Returns EsEmissionResult

    Code emission result that prints class name.

  • Searches for the member declaration.

    Type Parameters

    • TMember extends EsMember<THandle>

      Member type.

    • THandle = HandleOf<TMember>

      Handle type.

    Parameters

    • member: TMember

      Member to find.

    Returns undefined | EsMemberRef<TMember, THandle>

    Either found member reference, or undefined if the member neither declared in this class, nor in one of its base classes.

  • Instantiates this class.

    Shorthand for `this.getHandle().instantiate(args).

    Parameters

    Returns EsSnippet

    Class instantiation expression.

  • Obtains member's handle.

    Type Parameters

    • TMember extends EsMember<THandle>

      Member type.

    • THandle = HandleOf<TMember>

      Handle type.

    Parameters

    • member: TMember

      Member to access.

    Returns THandle

    Member handle, either declared in this class, or derived from the base one.

    Throws

    ReferenceError if the member is neither declared in this class, nor derived from one of the base ones.

  • Iterates over class members.

    Parameters

    • Optional filter: {
          derived?: boolean;
          visibility?: "public" | "private" | "all";
      }

      Optional member filter.

      Optional
      • Optional Readonly derived?: boolean

        Whether to include members derived from the base class and not overridden in this one.

        Default Value

        true

      • Optional Readonly visibility?: "public" | "private" | "all"

        Members visibility.

        Either public to include only public members, private to include only private members, or all to include all members.

        Default Value

        all.

    Returns IterableIterator<EsMemberRef<EsAnyMember, any>>

    Iterable iterator of matching members.

  • Returns string

Generated using TypeDoc