Deprecated
No attempt has been made to optimize this class for speed or space.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private CharScanner | |
| private int | |
| private int | |
| private int | |
| private int | |
| private final Reader | |
| private final SourceBuffer |
| Access | Constructor and Description |
|---|---|
| public | UnicodeEscapingReader(Reader
The reader that this reader will filter over. reader, SourceBuffer sourceBuffer)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | close()
Implements abstract java. Implements java. |
| public int | |
| 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. |
| public int | read()
Overrides java. |
| public void | |
| private void |
| hasNextChar | back to summary |
|---|---|
| private boolean hasNextChar | |
| lexer | back to summary |
|---|---|
| private CharScanner lexer | |
| nextChar | back to summary |
|---|---|
| private int nextChar | |
| numUnicodeEscapesFound | back to summary |
|---|---|
| private int numUnicodeEscapesFound | |
| numUnicodeEscapesFoundOnCurrentLine | back to summary |
|---|---|
| private int numUnicodeEscapesFoundOnCurrentLine | |
| previousLine | back to summary |
|---|---|
| private int previousLine | |
| reader | back to summary |
|---|---|
| private final Reader reader | |
| sourceBuffer | back to summary |
|---|---|
| private final SourceBuffer sourceBuffer | |
| UnicodeEscapingReader | back to summary |
|---|---|
| public UnicodeEscapingReader(Reader reader, SourceBuffer sourceBuffer) Constructor.
| |
| checkHexDigit | back to summary |
|---|---|
| private void checkHexDigit(int c) throws IOException Checks that the given character is indeed a hex digit. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements abstract java. Implements java. Closes this reader by calling close on the underlying reader.
| |
| getUnescapedUnicodeColumnCount | back to summary |
|---|---|
| public int getUnescapedUnicodeColumnCount() | |
| getUnescapedUnicodeOffsetCount | back to summary |
|---|---|
| public int getUnescapedUnicodeOffsetCount() | |
| read | back to summary |
|---|---|
| public int read(char[] cbuf, int off, int len) throws IOException Implements abstract java. Reads characters from the underlying reader.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Gets the next character from the underlying reader, translating escapes as required.
| |
| setLexer | back to summary |
|---|---|
| public void setLexer(CharScanner lexer) Sets the lexer that is using this reader. Must be called before the lexer is used. | |
| write | back to summary |
|---|---|
| private void write(int c) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Token |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | |
| public Token |
| t | back to summary |
|---|---|
| private final Token t | |
| DummyLexer | back to summary |
|---|---|
| private DummyLexer() | |
| getColumn | back to summary |
|---|---|
| public int getColumn() Overrides antlr.
| |
| getLine | back to summary |
|---|---|
| public int getLine() Overrides antlr.
| |
| nextToken | back to summary |
|---|---|
| public Token nextToken() throws TokenStreamException Implements antlr.
| |