| |
|
| java.lang.Object antlr.TokenQueue
TokenQueue | class TokenQueue (Code) | | A private circular buffer object used by the token buffer
|
Constructor Summary | |
public | TokenQueue(int minSize) |
nbrEntries | protected int nbrEntries(Code) | | number of tokens in the queue
|
TokenQueue | public TokenQueue(int minSize)(Code) | | |
append | final public void append(Token tok)(Code) | | Add token to end of the queue
Parameters: tok - The token to add |
elementAt | final public Token elementAt(int idx)(Code) | | Fetch a token from the queue by index
Parameters: idx - The index of the token to fetch, where zero is the token at the front of the queue |
removeFirst | final public void removeFirst()(Code) | | Remove token from front of queue
|
reset | final public void reset()(Code) | | Clear the queue. Leaving the previous buffer alone.
|
|
|
|