Package com.google.turbine.parse
Interface Lexer
-
- All Known Implementing Classes:
IteratorLexer,StreamLexer
public interface LexerA Java lexer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringjavadoc()Returns a saved javadoc comment.Tokennext()Returns the next token in the input stream, orEOF.intposition()Returns the current position in the input.SourceFilesource()Returns the source file for diagnostics.java.lang.StringstringValue()Returns the string value of the current literal or identifier token.
-
-
-
Method Detail
-
next
Token next()
Returns the next token in the input stream, orEOF.
-
stringValue
java.lang.String stringValue()
Returns the string value of the current literal or identifier token.
-
position
int position()
Returns the current position in the input.
-
source
SourceFile source()
Returns the source file for diagnostics.
-
javadoc
java.lang.String javadoc()
Returns a saved javadoc comment.
-
-