| |
|
| java.lang.Object persistence.antlr.CharQueue
CharQueue | public class CharQueue (Code) | | A circular buffer object used by CharBuffer
|
Constructor Summary | |
public | CharQueue(int minSize) |
Method Summary | |
final public void | append(char tok) | final public char | elementAt(int idx) | public void | init(int size) Initialize the queue. | final public void | removeFirst() | final public void | reset() Clear the queue. |
buffer | protected char[] buffer(Code) | | Physical circular buffer of tokens
|
nbrEntries | protected int nbrEntries(Code) | | number of tokens in the queue
|
CharQueue | public CharQueue(int minSize)(Code) | | |
append | final public void append(char tok)(Code) | | Add token to end of the queue
Parameters: tok - The token to add |
elementAt | final public char elementAt(int idx)(Code) | | 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 |
init | public void init(int size)(Code) | | Initialize the queue.
Parameters: size - The initial size of the queue |
removeFirst | final public void removeFirst()(Code) | | Remove char from front of queue
|
reset | final public void reset()(Code) | | Clear the queue. Leaving the previous buffer alone.
|
|
|
|