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>
- Direct Known Subclasses:
FileLexerSource
public class InputLexerSource extends LexerSource
ASource
which lexes anInputStream
. The input is buffered.- See Also:
Source
-
-
Constructor Summary
Constructors Constructor Description InputLexerSource(InputStream input)
Deprecated.InputLexerSource(InputStream input, Charset charset)
Creates a new Source for lexing the given Reader.InputLexerSource(Reader input)
InputLexerSource(Reader input, boolean ppvalid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the human-readable name of the current Source.String
getPath()
Returns the File currently being lexed.String
toString()
-
Methods inherited from class com.jogamp.gluegen.jcpp.LexerSource
close, getColumn, getLine, toBufferedReader, 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
-
InputLexerSource
@Deprecated public InputLexerSource(@Nonnull InputStream input)
Deprecated.
-
InputLexerSource
public InputLexerSource(@Nonnull InputStream input, Charset charset)
Creates a new Source for lexing the given Reader. Preprocessor directives are honoured within the file.
-
InputLexerSource
public InputLexerSource(@Nonnull Reader input, boolean ppvalid)
-
InputLexerSource
public InputLexerSource(@Nonnull Reader input)
-
-
Method Detail
-
getPath
public String getPath()
Description copied from class:Source
Returns 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
public String getName()
Description copied from class:Source
Returns the human-readable name of the current Source.
-
-