antlr
Class TokenStreamBasicFilter

java.lang.Object
  |
  +--antlr.TokenStreamBasicFilter
All Implemented Interfaces:
TokenStream
Direct Known Subclasses:
TokenStreamHiddenTokenFilter

public class TokenStreamBasicFilter
extends Object
implements TokenStream

Untamed: 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.


Field Summary
protected  BitSet discardMask
          The set of token types to discard
protected  TokenStream input
          The input stream
 
Constructor Summary
TokenStreamBasicFilter(TokenStream input)
          Enabled:
 
Method Summary
 void discard(BitSet mask)
          Enabled:
 void discard(int ttype)
          Enabled:
 Token nextToken()
          Enabled:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

discardMask

protected BitSet discardMask
The set of token types to discard


input

protected TokenStream input
The input stream

Constructor Detail

TokenStreamBasicFilter

public TokenStreamBasicFilter(TokenStream input)
Enabled:

Method Detail

discard

public void discard(int ttype)
Enabled:


discard

public void discard(BitSet mask)
Enabled:


nextToken

public Token nextToken()
                throws TokenStreamException
Enabled:

Specified by:
nextToken in interface TokenStream
TokenStreamException


comments?