antlr
public class CharQueue extends Object
| Field Summary | |
|---|---|
| protected char[] | buffer Physical circular buffer of tokens |
| protected int | nbrEntries number of tokens in the queue |
| Constructor Summary | |
|---|---|
| CharQueue(int minSize) | |
| Method Summary | |
|---|---|
| void | append(char tok) Add token to end of the queue |
| char | elementAt(int idx) Fetch a token from the queue by index |
| void | init(int size) Initialize the queue. |
| void | removeFirst() Remove char 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
Parameters: size The initial size of the queue