Interface Token

A token created when parsing a string.

Hierarchy

  • Token

Implemented by

Properties

Methods

Properties

type: TokenType

Returns

The type of token.

Methods

  • Returns true if the object matches this one.

    Parameters

    Returns boolean

    True if the objects are equal.

  • Returns true if the type matches this token's type.

    Parameters

    Returns boolean

    True if the type matches.

  • Encodes to an encoded zinc value that can be used in a haystack filter string.

    The encoding for a haystack filter is mostly zinc but contains some exceptions.

    Returns string

    The encoded value that can be used in a haystack filter.

  • Returns {
        type: string;
        [prop: string]: string | string[] | HaysonVal;
    }

    A JSON representation of the token.

    • [prop: string]: string | string[] | HaysonVal
    • type: string

Generated using TypeDoc