Свойство | Тип | Описание | |
---|---|---|---|
fetchedEOF | bool | ||
p | int | ||
tokens | IList |
Метод | Описание | |
---|---|---|
BufferedTokenStream ( ITokenSource tokenSource ) : System | ||
Consume ( ) : void | ||
Fill ( ) : void |
Get all tokens from lexer until EOF. Get all tokens from lexer until EOF. |
|
Get ( int start, int stop ) : IList |
Get all tokens from start..stop inclusively. Get all tokens from start..stop inclusively. |
|
Get ( int i ) : IToken | ||
GetHiddenTokensToLeft ( int tokenIndex ) : IList |
Collect all hidden tokens (any off-default channel) to the left of the current token up until we see a token on Lexer.DefaultTokenChannel .
|
|
GetHiddenTokensToLeft ( int tokenIndex, int channel ) : IList |
Collect all tokens on specified channel to the left of the current token up until we see a token on Lexer.DefaultTokenChannel . If channel is
|
|
GetHiddenTokensToRight ( int tokenIndex ) : IList |
Collect all hidden tokens (any off-default channel) to the right of the current token up until we see a token on Lexer.DefaultTokenChannel or EOF.
|
|
GetHiddenTokensToRight ( int tokenIndex, int channel ) : IList |
Collect all tokens on specified channel to the right of the current token up until we see a token on Lexer.DefaultTokenChannel or EOF. If channel is
|
|
GetTokens ( ) : IList |
||
GetTokens ( int start, int stop ) : IList |
||
GetTokens ( int start, int stop, |
Given a start and stop index, return a
|
|
GetTokens ( int start, int stop, int ttype ) : IList |
||
LA ( int i ) : int | ||
Mark ( ) : int | ||
Release ( int marker ) : void | ||
Reset ( ) : void | ||
Seek ( int index ) : void | ||
SetTokenSource ( ITokenSource tokenSource ) : void |
Reset this token stream by setting its token source. Reset this token stream by setting its token source. |
Метод | Описание | |
---|---|---|
AdjustSeekIndex ( int i ) : int |
Allowed derived classes to modify the behavior of operations which change the current stream position by adjusting the target token index of a seek operation. Allowed derived classes to modify the behavior of operations which change the current stream position by adjusting the target token index of a seek operation. The default implementation simply returns i . If an exception is thrown in this method, the current stream index should not be changed. For example, CommonTokenStream overrides this method to ensure that the seek target is always an on-channel token. |
|
Fetch ( int n ) : int |
Add n elements to buffer.
|
|
FilterForChannel ( int from, int to, int channel ) : IList |
||
LazyInit ( ) : void | ||
Lb ( int k ) : IToken | ||
NextTokenOnChannel ( int i, int channel ) : int |
Given a starting index, return the index of the next token on channel. Given a starting index, return the index of the next token on channel. Return i if |
|
PreviousTokenOnChannel ( int i, int channel ) : int |
Given a starting index, return the index of the previous token on channel. Given a starting index, return the index of the previous token on channel. Return i if If i specifies an index at or after the EOF token, the EOF token index is returned. This is due to the fact that the EOF token is treated as though it were on every channel. |
|
Setup ( ) : void | ||
Sync ( int i ) : bool |
Make sure index i in tokens has a token.
|
Метод | Описание | |
---|---|---|
GetText ( ) : string | ||
GetText ( IToken start, IToken stop ) : string | ||
GetText ( |
||
GetText ( RuleContext ctx ) : string | ||
LT ( int k ) : IToken |
protected AdjustSeekIndex ( int i ) : int | ||
i | int | The target token index. |
Результат | int |
public BufferedTokenStream ( ITokenSource tokenSource ) : System | ||
tokenSource | ITokenSource | |
Результат | System |
protected FilterForChannel ( int from, int to, int channel ) : IList |
||
from | int | |
to | int | |
channel | int | |
Результат | IList |
public GetHiddenTokensToLeft ( int tokenIndex ) : IList |
||
tokenIndex | int | |
Результат | IList |
public GetHiddenTokensToLeft ( int tokenIndex, int channel ) : IList |
||
tokenIndex | int | |
channel | int | |
Результат | IList |
public GetHiddenTokensToRight ( int tokenIndex ) : IList |
||
tokenIndex | int | |
Результат | IList |
public GetHiddenTokensToRight ( int tokenIndex, int channel ) : IList |
||
tokenIndex | int | |
channel | int | |
Результат | IList |
public GetTokens ( int start, int stop ) : IList |
||
start | int | |
stop | int | |
Результат | IList |
public GetTokens ( int start, int stop, |
||
start | int | |
stop | int | |
types | ||
Результат | IList |
public GetTokens ( int start, int stop, int ttype ) : IList |
||
start | int | |
stop | int | |
ttype | int | |
Результат | IList |
protected NextTokenOnChannel ( int i, int channel ) : int | ||
i | int | |
channel | int | |
Результат | int |
protected PreviousTokenOnChannel ( int i, int channel ) : int | ||
i | int | |
channel | int | |
Результат | int |
public SetTokenSource ( ITokenSource tokenSource ) : void | ||
tokenSource | ITokenSource | |
Результат | void |