org.codehaus.groovy.syntax.lexer
Class GroovyLexerBase
java.lang.Object
org.codehaus.groovy.syntax.lexer.LexerBase
org.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
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 |
stringLexer
protected StringLexer stringLexer
gstringLexer
protected GStringLexer gstringLexer
GroovyLexerBase
public GroovyLexerBase()
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-2004 The Codehaus. All Rights Reserved.