Package com.jogamp.gluegen.jcpp
Class FileLexerSource
java.lang.Object
com.jogamp.gluegen.jcpp.Source
com.jogamp.gluegen.jcpp.LexerSource
com.jogamp.gluegen.jcpp.FileLexerSource
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Token>
A
Source which lexes a file.
The input is buffered.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileLexerSource(File file) FileLexerSource(File file, String path) Creates a new Source for lexing the given File.FileLexerSource(String path) -
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
-
FileLexerSource
Creates a new Source for lexing the given File. Preprocessor directives are honoured within the file.- Throws:
IOException
-
FileLexerSource
- Throws:
IOException
-
FileLexerSource
- Throws:
IOException
-
-
Method Details
-
getFile
-
getPath
This is not necessarily the same as getFile().getPath() in case we are in a chroot. -
getName
Description copied from class:SourceReturns the human-readable name of the current Source. -
toString
-