Hierarchy

  • CommonToken

Implements

Index

Constructors

constructor

Properties

_text

_text: string

We need to be able to change the text once in a while. If this is non-null, then getText should return this. Note that start/stop are not affected by changing this.

channel

channel: number = TokenChannels.default

charPositionInLine

charPositionInLine: number = -1

index

index: number = -1

What token number is this from 0..n-1 tokens; < 0 implies invalid index

input

line

line: number

start

start: number

The char position into the input buffer where this token starts

stop

stop: number

The char position into the input buffer where this token stops

type

type: number

Accessors

inputStream

startIndex

  • get startIndex(): number
  • set startIndex(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

stopIndex

  • get stopIndex(): number
  • set stopIndex(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

text

  • get text(): string
  • set text(value: string): void
  • Returns string

  • Parameters

    • value: string

    Returns void

tokenIndex

  • get tokenIndex(): number
  • set tokenIndex(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

Methods

implements

  • implements(): any[]
  • Returns any[]

toString

  • toString(): string
  • Returns string

Static create1

Static create2

Static create3

  • Parameters

    • type: number
    • text: string

    Returns CommonToken

Static create4

Generated using TypeDoc