Home | Download | News | Wiki | About ANTLR | Feedback | Support | Bugs


Latest version is 2.7.7.
Download now! »

Download
» Home
» Download
» News
»Using ANTLR
» Documentation
» Wiki
» FAQ
» Articles
» Grammars
» File Sharing
» Code API
» Tech Support
» Bug Tracking
»About ANTLR
» What is ANTLR
» Why use ANTLR
» Showcase
» Testimonials
» Getting Started
» Software License
» ANTLR WebLogs
» ANTLR Workshops
»StringTemplate
»TML
»PCCTS
»Feedback
»Credits
»Contact


Support StringTemplate, ANTLR Project by making a donation! Terence often pays for things like the antlr.org server, conference travel, and this site design (that alone cost US$1000). Buy him a beer and pizza remotely ;)

Search



TokenStreamBasicFilter


antlr
Class TokenStreamBasicFilter

java.lang.Object
  extended byantlr.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.


Constructor Summary
TokenStreamBasicFilter(TokenStream input)
           
 
Method Summary
 void discard(BitSet mask)
           
 void discard(int ttype)
           
 Token nextToken()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TokenStreamBasicFilter

public TokenStreamBasicFilter(TokenStream input)
Method Detail

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