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