Свойство | Type | Description | |
---|---|---|---|
currentTokenIndex | int | ||
lastToken | IToken | ||
lastTokenBufferStart | IToken | ||
n | int | ||
numMarkers | int | ||
p | int | ||
tokens | IToken[] |
Méthode | Description | |
---|---|---|
Consume ( ) : void | ||
Get ( int i ) : IToken | ||
LA ( int i ) : int | ||
LT ( int i ) : IToken | ||
Mark ( ) : int |
Return a marker that we can release later. Return a marker that we can release later. The specific marker value used for this class allows for some level of protection against misuse where |
|
Release ( int marker ) : void | ||
Seek ( int index ) : void | ||
UnbufferedTokenStream ( ITokenSource tokenSource ) : System | ||
UnbufferedTokenStream ( ITokenSource tokenSource, int bufferSize ) : System |
Méthode | Description | |
---|---|---|
Add ( IToken t ) : void | ||
Fill ( int n ) : int |
Add n elements to the buffer. Returns the number of tokens actually added to the buffer. If the return value is less than n , then EOF was reached before n tokens could be added.
|
|
GetBufferStartIndex ( ) : int | ||
Sync ( int want ) : void |
Make sure we have 'need' elements from current position
|
Méthode | Description | |
---|---|---|
GetText ( ) : string | ||
GetText ( IToken start, IToken stop ) : string | ||
GetText ( |
||
GetText ( RuleContext ctx ) : string |
public UnbufferedTokenStream ( ITokenSource tokenSource ) : System | ||
tokenSource | ITokenSource | |
Résultat | System |
public UnbufferedTokenStream ( ITokenSource tokenSource, int bufferSize ) : System | ||
tokenSource | ITokenSource | |
bufferSize | int | |
Résultat | System |