java.lang.Object antlr.TokenBuffer
Constructor Summary | |
TokenBuffer(TokenStream input_)
Create a token buffer |
Method Summary | |
void |
consume()
Mark another token for deferred consumption |
TokenStream |
getInput()
return the Tokenizer (needed by ParseView) |
int |
LA(int i)
Get a lookahead token value |
Token |
LT(int i)
Get a lookahead token |
int |
mark()
Return an integer marker that can be used to rewind the buffer to its current state. |
void |
reset()
Reset the input buffer to empty state |
void |
rewind(int mark)
Rewind the token buffer to a marker. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TokenBuffer(TokenStream input_)
Method Detail |
public final void reset()
public final void consume()
public TokenStream getInput()
public final int LA(int i) throws TokenStreamException
TokenStreamException
public final Token LT(int i) throws TokenStreamException
TokenStreamException
public final int mark()
public final void rewind(int mark)
mark
- Marker returned previously from mark()