C# 클래스 Antlr4.Runtime.CommonToken

상속: IWritableToken
파일 보기 프로젝트 열기: antlr/antlr4 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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