at.dms.compiler.tools.antlr.runtime
Class CharQueue
java.lang.Object
at.dms.compiler.tools.antlr.runtime.CharQueue
public class CharQueue
- extends Object
A circular buffer object used by CharBuffer
|
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 |
removeFirst()
Remove char from front of queue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected char[] buffer
sizeLessOne
protected int sizeLessOne
offset
protected int offset
nbrEntries
protected int nbrEntries
CharQueue
public CharQueue(int minSize)
append
public final void append(char tok)
- Add token to end of the queue
- Parameters:
tok - The token to add
elementAt
public final char elementAt(int idx)
- Fetch a token from the queue by index
- Parameters:
idx - The index of the token to fetch, where zero is the token at the front of the queue
removeFirst
public final void removeFirst()
- Remove char from front of queue