|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.CharQueue
Untamed:
Field Summary | |
protected char[] |
buffer
|
protected int |
nbrEntries
|
protected int |
offset
|
protected int |
sizeLessOne
|
Constructor Summary | |
CharQueue(int minSize)
Enabled: |
Method Summary | |
void |
append(char tok)
Enabled: Add token to end of the queue |
char |
elementAt(int idx)
Enabled: Fetch a token from the queue by index |
private void |
expand()
Expand the token buffer by doubling its capacity |
private void |
init(int size)
Initialize the queue. |
void |
removeFirst()
Enabled: Remove char from front of 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 sizeLessOne
protected int offset
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 queueprivate final void expand()
private final void init(int size)
size
- The initial size of the queuepublic final void removeFirst()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |