Package com.jogamp.gluegen.jcpp
Class LexerSource
- java.lang.Object
-
- com.jogamp.gluegen.jcpp.Source
-
- com.jogamp.gluegen.jcpp.LexerSource
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Token>
- Direct Known Subclasses:
FileLexerSource,InputLexerSource,StringLexerSource
public class LexerSource extends Source
Does not handle digraphs.
-
-
Constructor Summary
Constructors Constructor Description LexerSource(Reader r, boolean ppvalid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intgetColumn()Returns the current column number within this Source.intgetLine()Returns the current line number within this Source.Tokentoken()Returns the next Token parsed from this input stream.-
Methods inherited from class com.jogamp.gluegen.jcpp.Source
error, getName, getParent, getPath, iterator, setListener, skipline, warning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
LexerSource
public LexerSource(Reader r, boolean ppvalid)
-
-
Method Detail
-
getLine
public int getLine()
Description copied from class:SourceReturns the current line number within this Source.
-
getColumn
public int getColumn()
Description copied from class:SourceReturns the current column number within this Source.
-
token
public Token token() throws IOException, LexerException
Description copied from class:SourceReturns the next Token parsed from this input stream.- Specified by:
tokenin classSource- Throws:
IOExceptionLexerException- See Also:
Token
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classSource- Throws:
IOException
-
-