Property | Type | Description | |
---|---|---|---|
channel | int |
Method | Description | |
---|---|---|
CommonTokenStream ( ITokenSource tokenSource ) : Antlr4.Runtime.Sharpen |
Constructs a new CommonTokenStream using the specified token source and the default token channel ( TokenConstants.DefaultChannel ).
|
|
CommonTokenStream ( ITokenSource tokenSource, int channel ) : Antlr4.Runtime.Sharpen |
Constructs a new CommonTokenStream using the specified token source and filtering tokens to the specified channel. Only tokens whose IToken.Channel() matches channel or have the IToken.Type() equal to TokenConstants.Eof will be returned by the token stream lookahead methods.
|
|
GetNumberOfOnChannelTokens ( ) : int |
Count EOF just once.
|
|
Lt ( int k ) : IToken |
Method | Description | |
---|---|---|
AdjustSeekIndex ( int i ) : int | ||
Lb ( int k ) : IToken |
public CommonTokenStream ( ITokenSource tokenSource ) : Antlr4.Runtime.Sharpen | ||
tokenSource | ITokenSource | The token source. |
return | Antlr4.Runtime.Sharpen |
public CommonTokenStream ( ITokenSource tokenSource, int channel ) : Antlr4.Runtime.Sharpen | ||
tokenSource | ITokenSource | The token source. |
channel | int | The channel to use for filtering tokens. |
return | Antlr4.Runtime.Sharpen |