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