org.codehaus.groovy.syntax.lexer
Class GroovyLexerBase

java.lang.Object
  extended byorg.codehaus.groovy.syntax.lexer.LexerBase
      extended byorg.codehaus.groovy.syntax.lexer.GroovyLexerBase
All Implemented Interfaces:
Lexer
Direct Known Subclasses:
GroovyExpressionLexer, GroovyLexer

public class GroovyLexerBase
extends LexerBase

The core code used in lexing Groovy.

Author:
Bob Mcwhirter, James Strachan, John Wilson, Chris Poirier

Field Summary
protected  GStringLexer gstringLexer
           
protected  StringLexer stringLexer
           
 
Fields inherited from class org.codehaus.groovy.syntax.lexer.LexerBase
delegate, source, startColumn, startLine
 
Constructor Summary
GroovyLexerBase()
           
 
Method Summary
 Token nextToken()
          Finds and returns (and consumes) the next token from the underlying stream.
 
Methods inherited from class org.codehaus.groovy.syntax.lexer.LexerBase
consume, delegate, getColumn, getDelegate, getLine, getSource, getStartColumn, getStartLine, isDelegated, isExternallySourced, la, la, mark, readEOL, readEOL, reset, setSource, symbol, symbol, tokenizeEOL, undelegate, undelegatedNextToken, unexpected, unexpected, unexpected, unsetSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stringLexer

protected StringLexer stringLexer

gstringLexer

protected GStringLexer gstringLexer
Constructor Detail

GroovyLexerBase

public GroovyLexerBase()
Method Detail

nextToken

public Token nextToken()
                throws ReadException,
                       LexerException
Finds and returns (and consumes) the next token from the underlying stream. Returns null when out of tokens.

Specified by:
nextToken in interface Lexer
Overrides:
nextToken in class LexerBase
Throws:
ReadException
LexerException


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