NDNts

    Specify several overlapped patterns in "AND" relation.

    When matching a name, every branch of this pattern must extract the same number of name components, and their variables must be consistent.

    When building a name, one branch is used to build the name as long as all required variables are present, and then the built name must match all branches.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    branches: readonly Pattern[]

    Accessors

    • get matchLengthRange(): [min: number, max: number]

      Determine minimum and maximum match length.

      Returns [min: number, max: number]

      This optimization is used in match for early rejection of input names that are either too short or too long.

    Methods

    • Recognize part of the input name.

      Parameters

      • state: MatchState
      • branchIndex: number = 0
      • OptionallastMatch: MatchState

      Returns Iterable<MatchState>

      Iterable of potential matches.

    • Build part of an output name.

      Parameters

      Returns Iterable<BuildState>

      Iterable of potential constructions.

    MMNEPVFCICPMFPCPTTAAATR