class ByteArrayLexerSource.PushbackCursor extends java.lang.Object implements ByteArrayLexerSource.Cursor
| Modifier and Type | Field and Description |
|---|---|
private ByteArrayLexerSource.Cursor |
parent |
private org.jruby.util.ByteList |
region |
| Constructor and Description |
|---|
PushbackCursor(ByteArrayLexerSource.Cursor prev,
org.jruby.util.ByteList 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) |
private final ByteArrayLexerSource.Cursor parent
private final org.jruby.util.ByteList region
public PushbackCursor(ByteArrayLexerSource.Cursor prev, org.jruby.util.ByteList region)
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