Class PatternAbstract

Structure of a name.

Hierarchy

Constructors

Methods

  • Build names following the structure of this pattern.

    Parameters

    • Rest ...varsL: VarsLike[]

      sets of variables to be replaced into the name.

    Returns Iterable<Name>

    an iterable of possible names.

  • Parameters

    • state: BuildState

    Returns Iterable<BuildState>

  • Determine whether a name matches the structure of this pattern.

    Parameters

    • name: Name

      input name.

    Returns Iterable<Vars>

    an iterable of extracted fields in possible interpretations.

  • Recognize part of the input name.

    Parameters

    • state: MatchState

    Returns Iterable<MatchState>

    iterable of potential matches.

  • Build part of an output name.

    Parameters

    Returns Iterable<BuildState>

    iterable of potential constructions.

  • Parameters

    Returns Iterable<MatchState>

Generated using TypeDoc