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>
public class FileLexerSource extends LexerSource
ASource
which lexes a file. The input is buffered.- See Also:
Source
-
-
Constructor Summary
Constructors Constructor Description FileLexerSource(File file)
FileLexerSource(File file, String path)
Creates a new Source for lexing the given File.FileLexerSource(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File
getFile()
String
getName()
Returns the human-readable name of the current Source.String
getPath()
This is not necessarily the same as getFile().getPath() in case we are in a chroot.String
toString()
-
Methods inherited from class com.jogamp.gluegen.jcpp.LexerSource
close, getColumn, getLine, token
-
Methods inherited from class com.jogamp.gluegen.jcpp.Source
error, getParent, iterator, setListener, skipline, warning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
FileLexerSource
public FileLexerSource(@Nonnull File file, String path) throws IOException
Creates a new Source for lexing the given File. Preprocessor directives are honoured within the file.- Throws:
IOException
-
FileLexerSource
public FileLexerSource(@Nonnull File file) throws IOException
- Throws:
IOException
-
FileLexerSource
public FileLexerSource(@Nonnull String path) throws IOException
- Throws:
IOException
-
-