hed-typescript API
    Preparing search index...

    A parsed HED tag group.

    Hierarchy (View Summary)

    Index
    • Constructor.

      Parameters

      • parsedHedTags: default[]

        The parsed HED tags, groups or column splices in the HED tag group.

      • hedString: string

        The original HED string.

      • originalBounds: [number, number]

        The bounds of the HED tag in the original HED string.

      Returns default

    allTags: default[]

    All the parsed HED tags in this string.

    defCount: number

    The total number of top-level Def tags and top-level Def-expand groups.

    defExpandChildren: default[]

    The top-level child subgroups containing Def-expand tags.

    defExpandTags: default[]

    The top-level Def-expand tags.

    definitionTags: default[]

    The top-level Definition tags.

    defTags: default[]

    The top-level Def tags.

    isDefinitionGroup: boolean

    True if this group has a Definition tag at the top level.

    originalBounds: Bounds

    The bounds of the HED tag in the original HED string.

    originalTag: string

    The original pre-parsed version of the HED tag.

    requiresDefTag: default[]

    The unique top-level tag requiring a Def or Def-expand group, if any.

    reservedTags: Map<string, default[]>

    Reserved HED group tags. This only covers top group tags in the group.

    tags: default[]

    The parsed HED tags, groups, or splices in the HED tag group at the top level.

    topGroups: default[]

    The top-level parsed HED groups in this string.

    topSplices: default[]

    The top-level column splices in this string.

    topTags: default[]

    The top-level parsed HED tags in this string.

    • get normalized(): string

      Return a normalized string representation.

      Returns string

      The normalized string representation of this group.

    • Determine if this group is equivalent to another.

      Parameters

      • other: unknown

        The other group.

      Returns boolean

      Whether the two groups are equivalent.

    • Nicely format this tag group.

      Parameters

      • long: boolean = true

        Whether the tags should be in long form.

      Returns string

      The formatted tag group.

    • Iterator over the ParsedHedGroup objects in this HED tag group.

      Parameters

      • tagName: string | null = null

        The name of the tag whose groups are to be iterated over or null if all tags.

      Returns Generator<default>

      This object and the ParsedHedGroup objects belonging to this tag group.

    • Find the repeated expressions among the items of one level of a HED string or tag group.

      Parameters

      • items: default[]

        The items of one level.

      Returns string[]

      The normalized forms that occur more than once, sorted, each listed once.

      Items are compared by their normalized forms, so under the case rule of specification 3.2.3 (3.2.7.4). Identical Definition groups are not repeated expressions (3.2.8.1): each is a definition of its own, and the definition manager decides whether copies of one name agree (DEFINITION_INVALID i). A tag or group that holds a # placeholder is not a repeated expression either: the placeholder can stand for any value, so whether it repeats is known only when a row is assembled (3.2.9.3 rule 10).