Reader
which preprocesses the input text.
Preprocessor, Reader
| Modifier and Type | Field and Description |
|---|---|
| private final Preprocessor | |
| private int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | close()
Implements abstract java. Implements java. |
| public Preprocessor | |
| public int | |
| public int | read(char[]
Destination buffer cbuf, int Offset at which to start storing characters off, int Maximum number of characters to read len)Implements abstract java. |
| private boolean |
| cpp | back to summary |
|---|---|
| private final Preprocessor cpp | |
| idx | back to summary |
|---|---|
| private int idx | |
| token | back to summary |
|---|---|
| private String token | |
| CppReader | back to summary |
|---|---|
| public CppReader(final Reader r) | |
| CppReader | back to summary |
|---|---|
| public CppReader(Preprocessor p) | |
| addMacro | back to summary |
|---|---|
| public void addMacro(String name) throws LexerException Defines the given name as a macro. This is a convnience method. | |
| addMacro | back to summary |
|---|---|
| public void addMacro(String name, String value) throws LexerException Defines the given name as a macro. This is a convnience method. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getPreprocessor | back to summary |
|---|---|
| public Preprocessor getPreprocessor() Returns the Preprocessor used by this CppReader.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached. Subclasses that intend to support efficient single-character input should override this method.
| |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Implements abstract java. Doc from java. Reads characters into a portion of an array. This method will block until some input is available, an I/O error occurs, or the end of the stream is reached. If
| |
| refill | back to summary |
|---|---|
| private boolean refill() throws IOException | |