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