Package com.google.turbine.parse
Class IteratorLexer
- java.lang.Object
-
- com.google.turbine.parse.IteratorLexer
-
-
Constructor Summary
Constructors Constructor Description IteratorLexer(SourceFile source, java.util.Iterator<com.google.turbine.parse.SavedToken> it)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
IteratorLexer
public IteratorLexer(SourceFile source, java.util.Iterator<com.google.turbine.parse.SavedToken> it)
-
-
Method Detail
-
source
public SourceFile source()
Description copied from interface:LexerReturns the source file for diagnostics.
-
next
public Token next()
Description copied from interface:LexerReturns the next token in the input stream, orEOF.
-
stringValue
public java.lang.String stringValue()
Description copied from interface:LexerReturns the string value of the current literal or identifier token.- Specified by:
stringValuein interfaceLexer
-
position
public int position()
Description copied from interface:LexerReturns the current position in the input.
-
-