mjc

org.multijava.mjc
Class ParsingController.FilteredTokenStream

java.lang.Object
  extended byorg.multijava.mjc.ParsingController.FilteredTokenStream
All Implemented Interfaces:
antlr.TokenStream
Enclosing class:
ParsingController

public class ParsingController.FilteredTokenStream
extends Object
implements antlr.TokenStream

This inner class provides a token stream that accesses one of the lexers managed by the controller.


Field Summary
private  ParsingController.IndexedTokenBuffer buffer
          Maintains a link to the token buffer that is applicable for this output stream.
private  boolean localEOFReached
          Indicates whether an end-of-file token has been processed on the attached input stream.
 
Constructor Summary
private ParsingController.FilteredTokenStream(ParsingController.IndexedTokenBuffer buffer)
          Creates a new token stream reading from the given buffer.
 
Method Summary
 antlr.Token nextToken()
          Returns the next token from the appropriate lexer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

private final ParsingController.IndexedTokenBuffer buffer
Maintains a link to the token buffer that is applicable for this output stream.


localEOFReached

private boolean localEOFReached
Indicates whether an end-of-file token has been processed on the attached input stream.

Constructor Detail

ParsingController.FilteredTokenStream

private ParsingController.FilteredTokenStream(ParsingController.IndexedTokenBuffer buffer)
Creates a new token stream reading from the given buffer. If the buffer is blocked then reading more than the number of tokens in the buffer will yield an end-of-file token.

Method Detail

nextToken

public antlr.Token nextToken()
                      throws antlr.TokenStreamException
Returns the next token from the appropriate lexer.

Specified by:
nextToken in interface antlr.TokenStream
Throws:
antlr.TokenStreamException

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.