|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.groovy.syntax.lexer.LexerBase
org.codehaus.groovy.syntax.lexer.GStringLexer
A lexer for GStrings, usually run on a LexerFilter base.
| Field Summary | |
protected GroovyExpressionLexer |
child
|
protected java.lang.StringBuffer |
fullText
|
protected int |
fullTextStartColumn
|
protected int |
fullTextStartLine
|
protected boolean |
inExpression
|
protected boolean |
sentEndToken
|
protected boolean |
sentStartToken
|
| Fields inherited from class org.codehaus.groovy.syntax.lexer.LexerBase |
delegate, source, startColumn, startLine |
| Constructor Summary | |
GStringLexer()
|
|
| Method Summary | |
char |
consume()
Eats a character from the input stream. |
void |
delegate(Lexer to)
Delegates our duties to another Lexer. |
void |
setSource(Lexer source)
Sets the source lexer. |
protected void |
sourceDelimiting(boolean delimit)
Coordinates with our source about delimiting. |
void |
undelegate()
Retakes responsibility for our duties. |
protected Token |
undelegatedNextToken()
Finds and returns (consuming) the next token from the underlying stream. |
void |
unsetSource()
Unsets the source lexer. |
| Methods inherited from class org.codehaus.groovy.syntax.lexer.LexerBase |
getColumn, getDelegate, getLine, getSource, getStartColumn, getStartLine, isDelegated, isExternallySourced, la, la, mark, nextToken, readEOL, readEOL, reset, symbol, symbol, tokenizeEOL, unexpected, unexpected, unexpected |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected boolean sentStartToken
protected boolean sentEndToken
protected java.lang.StringBuffer fullText
protected int fullTextStartLine
protected int fullTextStartColumn
protected GroovyExpressionLexer child
protected boolean inExpression
| Constructor Detail |
public GStringLexer()
| Method Detail |
protected Token undelegatedNextToken()
throws ReadException,
LexerException
undelegatedNextToken in class LexerBaseReadException
LexerExceptionprotected void sourceDelimiting(boolean delimit)
public void delegate(Lexer to)
delegate in interface Lexerdelegate in class LexerBasepublic void undelegate()
undelegate in interface Lexerundelegate in class LexerBasepublic void setSource(Lexer source)
setSource in interface LexersetSource in class LexerBasepublic void unsetSource()
unsetSource in interface LexerunsetSource in class LexerBase
public char consume()
throws LexerException,
ReadException
consume in interface Lexerconsume in class LexerBaseLexerException
ReadException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||