class ByteArrayLexerSource.ByteArrayCursor extends java.lang.Object implements ByteArrayLexerSource.Cursor
| Modifier and Type | Field and Description |
|---|---|
private int |
index |
private byte[] |
region |
| Constructor and Description |
|---|
ByteArrayCursor(byte[] region) |
| Modifier and Type | Method and Description |
|---|---|
int |
at(int offset)
Read the character at the offset given without moving the cursor
|
int |
read() |
void |
unread(int c) |
public int read()
read in interface ByteArrayLexerSource.Cursorpublic void unread(int c)
unread in interface ByteArrayLexerSource.Cursorpublic int at(int offset)
ByteArrayLexerSource.Cursorat in interface ByteArrayLexerSource.Cursoroffset - relative to the current cursor position; -1 means previous character