public class TokenStreamBasicFilter extends Object implements TokenStream, IASDebugStream
| Modifier and Type | Field and Description |
|---|---|
protected BitSet |
discardMask
The set of token types to discard
|
protected TokenStream |
input
The input stream
|
| Constructor and Description |
|---|
TokenStreamBasicFilter(TokenStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
discard(BitSet mask) |
void |
discard(int ttype) |
String |
getEntireText()
Returns the entire text input to the lexer.
|
TokenOffsetInfo |
getOffsetInfo(Token token)
Returns the offset information for the token
|
Token |
nextToken() |
protected BitSet discardMask
protected TokenStream input
public TokenStreamBasicFilter(TokenStream input)
public void discard(int ttype)
public void discard(BitSet mask)
public Token nextToken() throws TokenStreamException
nextToken in interface TokenStreamTokenStreamExceptionpublic String getEntireText()
IASDebugStreamgetEntireText in interface IASDebugStreamnull, if error occured or System.in was used.public TokenOffsetInfo getOffsetInfo(Token token)
IASDebugStreamgetOffsetInfo in interface IASDebugStreamtoken - the token whose information need to be retrievednullCopyright © 2017–2019 Eclipse Foundation. All rights reserved.