Closeable
, AutoCloseable
, Readable
public class CppReader extends Reader implements Closeable
Reader
which preprocesses the input text.Preprocessor
,
Reader
Constructor | Description |
---|---|
CppReader(Preprocessor p) |
|
CppReader(Reader r) |
Modifier and Type | Method | Description |
---|---|---|
void |
addMacro(String name) |
Defines the given name as a macro.
|
void |
addMacro(String name,
String value) |
Defines the given name as a macro.
|
void |
close() |
|
Preprocessor |
getPreprocessor() |
Returns the Preprocessor used by this CppReader.
|
int |
read() |
|
int |
read(char[] cbuf,
int off,
int len) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mark, markSupported, read, read, ready, reset, skip, transferTo
public CppReader(Reader r)
public CppReader(Preprocessor p)
public Preprocessor getPreprocessor()
public void addMacro(String name) throws LexerException
LexerException
public void addMacro(String name, String value) throws LexerException
LexerException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class Reader
IOException