Package com.jogamp.gluegen.jcpp
Class CppReader
java.lang.Object
java.io.Reader
com.jogamp.gluegen.jcpp.CppReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
A Reader wrapper around the Preprocessor.
This is a utility class to provide a transparent
Reader
which preprocesses the input text.- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
CppReader
-
CppReader
-
-
Method Details
-
getPreprocessor
Returns the Preprocessor used by this CppReader. -
addMacro
Defines the given name as a macro. This is a convnience method.- Throws:
LexerException
-
addMacro
Defines the given name as a macro. This is a convnience method.- Throws:
LexerException
-
read
- Overrides:
readin classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-