org.codehaus.groovy.syntax.lexer
Class LexerTokenStream

java.lang.Object
  extended byorg.codehaus.groovy.syntax.AbstractTokenStream
      extended byorg.codehaus.groovy.syntax.lexer.LexerTokenStream
All Implemented Interfaces:
TokenStream

public class LexerTokenStream
extends AbstractTokenStream

Implements a TokenStream on a Lexer.


Field Summary
private  Lexer lexer
           
 
Fields inherited from class org.codehaus.groovy.syntax.AbstractTokenStream
 
Constructor Summary
LexerTokenStream(Lexer lexer)
          Initializes the LexerTokenStream.
 
Method Summary
 Lexer getLexer()
          Returns the underlying Lexer.
 Token nextToken()
          Returns the next token from the Lexer.
 
Methods inherited from class org.codehaus.groovy.syntax.AbstractTokenStream
atEnd, atEnd, checkpoint, consume, consume, getSourceLocator, la, la, restore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lexer

private Lexer lexer
Constructor Detail

LexerTokenStream

public LexerTokenStream(Lexer lexer)
Initializes the LexerTokenStream.

Method Detail

getLexer

public Lexer getLexer()
Returns the underlying Lexer.


nextToken

public Token nextToken()
                throws ReadException,
                       SyntaxException
Returns the next token from the Lexer.

Specified by:
nextToken in class AbstractTokenStream
Throws:
ReadException
SyntaxException


Copyright © 2003-2005 The Codehaus. All Rights Reserved.