|
|||||||||||
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 LexerBase
ReadException
LexerException
protected void sourceDelimiting(boolean delimit)
public void delegate(Lexer to)
delegate
in interface Lexer
delegate
in class LexerBase
public void undelegate()
undelegate
in interface Lexer
undelegate
in class LexerBase
public void setSource(Lexer source)
setSource
in interface Lexer
setSource
in class LexerBase
public void unsetSource()
unsetSource
in interface Lexer
unsetSource
in class LexerBase
public char consume() throws LexerException, ReadException
consume
in interface Lexer
consume
in class LexerBase
LexerException
ReadException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |