|
Home |
Download |
News |
Wiki |
About ANTLR |
Feedback |
Support |
Bugs
|
|
|
Latest version is 2.7.7. Download now! » |
|
|
InputBuffer
antlr
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Constructor Summary | |
InputBuffer()
Create an input buffer |
|
| Method Summary | |
void |
commit()
This method updates the state of the input buffer so that the text matched since the most recent mark() is no longer held by the buffer. |
void |
consume()
Mark another character for deferred consumption |
abstract void |
fill(int amount)
Ensure that the input buffer is sufficiently full |
java.lang.String |
getLAChars()
|
java.lang.String |
getMarkedChars()
|
boolean |
isMarked()
|
char |
LA(int i)
Get a lookahead character |
int |
mark()
Return an integer marker that can be used to rewind the buffer to its current state. |
void |
reset()
Reset the input buffer |
void |
rewind(int mark)
Rewind the character buffer to a marker. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputBuffer()
| Method Detail |
public void commit()
public void consume()
public abstract void fill(int amount)
throws CharStreamException
CharStreamExceptionpublic java.lang.String getLAChars()
public java.lang.String getMarkedChars()
public boolean isMarked()
public char LA(int i)
throws CharStreamException
CharStreamExceptionpublic int mark()
public void rewind(int mark)
mark - Marker returned previously from mark()public void reset()