Package com.jogamp.gluegen.jcpp
Class InputLexerSource
java.lang.Object
com.jogamp.gluegen.jcpp.Source
com.jogamp.gluegen.jcpp.LexerSource
com.jogamp.gluegen.jcpp.InputLexerSource
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Token>
A
Source which lexes a file.
The input is buffered.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputLexerSource(InputStream input) Creates a new Source for lexing the given Reader. -
Method Summary
Methods inherited from class com.jogamp.gluegen.jcpp.LexerSource
close, getColumn, getLine, tokenMethods inherited from class com.jogamp.gluegen.jcpp.Source
error, getParent, iterator, setListener, skipline, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
InputLexerSource
Creates a new Source for lexing the given Reader. Preprocessor directives are honoured within the file.- Throws:
IOException
-
-
Method Details
-
getPath
Description copied from class:SourceReturns the File currently being lexed. If this Source is not aFileLexerSource, then it will ask the parent Source, and so forth recursively. If no Source on the stack is a FileLexerSource, returns null. -
getName
Description copied from class:SourceReturns the human-readable name of the current Source. -
toString
-