C# Класс Antlr4.Runtime.CommonToken

Наследование: IWritableToken
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
EmptySource ICharStream>.Tuple
charPositionInLine int
index int
start int
stop int

Открытые методы

Метод Описание
CommonToken ( IToken oldToken ) : System

Constructs a new CommonToken as a copy of another IToken .

If oldToken is also a CommonToken instance, the newly constructed token will share a reference to the Text() field and the Tuple{T1, T2} stored in source . Otherwise, Text() will be assigned the result of calling Text() , and source will be constructed from the result of IToken.TokenSource() and IToken.InputStream() .

CommonToken ( ICharStream>.Tuple source, int type, int channel, int start, int stop ) : System
CommonToken ( int type ) : System

Constructs a new CommonToken with the specified token type.

CommonToken ( int type, string text ) : System

Constructs a new CommonToken with the specified token type and text.

ToString ( ) : string

Описание методов

CommonToken() публичный Метод

Constructs a new CommonToken as a copy of another IToken .

If oldToken is also a CommonToken instance, the newly constructed token will share a reference to the Text() field and the Tuple{T1, T2} stored in source . Otherwise, Text() will be assigned the result of calling Text() , and source will be constructed from the result of IToken.TokenSource() and IToken.InputStream() .

public CommonToken ( IToken oldToken ) : System
oldToken IToken The token to copy.
Результат System

CommonToken() публичный Метод

public CommonToken ( ICharStream>.Tuple source, int type, int channel, int start, int stop ) : System
source ICharStream>.Tuple
type int
channel int
start int
stop int
Результат System

CommonToken() публичный Метод

Constructs a new CommonToken with the specified token type.
public CommonToken ( int type ) : System
type int The token type.
Результат System

CommonToken() публичный Метод

Constructs a new CommonToken with the specified token type and text.
public CommonToken ( int type, string text ) : System
type int The token type.
text string The text of the token.
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

EmptySource защищенное статическое свойство

An empty Tuple{T1, T2} which is used as the default value of source for tokens that do not have a source.
protected static Tuple EmptySource
Результат ICharStream>.Tuple

charPositionInLine защищенное свойство

This is the backing field for the Column property.
protected int charPositionInLine
Результат int

index защищенное свойство

This is the backing field for the TokenIndex property.
protected int index
Результат int

start защищенное свойство

This is the backing field for the StartIndex property.
protected int start
Результат int

stop защищенное свойство

This is the backing field for the StopIndex property.
protected int stop
Результат int