|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--antlr.CharQueue
A circular buffer object used by CharBuffer
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected char[] buffer
protected int nbrEntries
| Constructor Detail |
public CharQueue(int minSize)
| Method Detail |
public final void append(char tok)
tok - The token to addpublic final char elementAt(int idx)
idx - The index of the token to fetch, where zero is the token at the front of the queuepublic void init(int size)
size - The initial size of the queuepublic final void reset()
public final void removeFirst()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||