antlr
Class TokenStreamBasicFilter
java.lang.Object
antlr.TokenStreamBasicFilter
- All Implemented Interfaces:
- TokenStream
- Direct Known Subclasses:
- TokenStreamHiddenTokenFilter
- public class TokenStreamBasicFilter
- extends java.lang.Object
- implements TokenStream
This object is a TokenStream that passes through all
tokens except for those that you tell it to discard.
There is no buffering of the tokens.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenStreamBasicFilter
public TokenStreamBasicFilter(TokenStream input)
discard
public void discard(int ttype)
discard
public void discard(BitSet mask)
nextToken
public Token nextToken()
throws TokenStreamException
- Specified by:
nextToken
in interface TokenStream
- Throws:
TokenStreamException