antlr
class TokenQueue extends Object
| Field Summary | |
|---|---|
| protected int | nbrEntries number of tokens in the queue |
| Constructor Summary | |
|---|---|
| TokenQueue(int minSize) | |
| Method Summary | |
|---|---|
| void | append(Token tok) Add token to end of the queue |
| Token | elementAt(int idx) Fetch a token from the queue by index |
| void | removeFirst() Remove token from front of queue |
| void | reset() Clear the queue. |
Parameters: tok The token to add
Parameters: idx The index of the token to fetch, where zero is the token at the front of the queue