Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpressionWordState

Implements a word state object.

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

keywords

keywords: string[] = ["AND", "OR", "NOT", "XOR", "LIKE", "IS", "IN", "NULL", "TRUE", "FALSE"]

Supported expression keywords.

Methods

clearWordChars

  • clearWordChars(): void

nextToken

  • Gets the next token from the stream started from the character linked to this state.

    Parameters

    • scanner: IScanner

      A textual string to be tokenized.

    • tokenizer: ITokenizer

      A tokenizer class that controls the process.

    Returns Token

    The next token from the top of the stream.

setWordChars

  • setWordChars(fromSymbol: number, toSymbol: number, enable: boolean): void
  • Establish characters in the given range as valid characters for part of a word after the first character. Note that the tokenizer must determine which characters are valid as the beginning character of a word.

    Parameters

    • fromSymbol: number

      First character index of the interval.

    • toSymbol: number

      Last character index of the interval.

    • enable: boolean

      true if this state should use characters in the given range.

    Returns void

Generated using TypeDoc