c0data
    Preparing search index...

    Class Reference

    A reference (DESIGN.md, References): a group name written plain, or a pattern, a level that is one branch of the target with its values left out. The pattern is reported as the level it is written as.

    Index
    • Parameters

      • name: Uint8Array<ArrayBufferLike> | undefined
      • pattern: Body | undefined

      Returns Reference

    name: Uint8Array<ArrayBufferLike> | undefined

    The group name of a plain reference, or undefined for a pattern.

    pattern: Body | undefined

    The pattern of ENQ DLE … CAN, or undefined for a plain reference.

    • get group(): Uint8Array

      Compatibility: the group name; throws when the reference is a pattern below the group.

      Returns Uint8Array

    • get groupName(): Uint8Array<ArrayBufferLike> | undefined

      The group named, when the reference names a group as a whole.

      Returns Uint8Array<ArrayBufferLike> | undefined

    • get isGroup(): boolean

      Whether the reference names a group as a whole: a plain name, or a pattern that is a bare group line.

      Returns boolean

    • get path(): Uint8Array<ArrayBufferLike>[]

      The steps of the pattern in walking order (file, groups, record id, field name, then the inner pattern's steps), or the group name alone. Informal: a keyed step contributes its key.

      Returns Uint8Array<ArrayBufferLike>[]

    • get segments(): string[]

      The path as strings.

      Returns string[]

    • Parse a raw unit holding a reference (notes after it allowed).

      Parameters

      • raw: Uint8Array

      Returns Reference