|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavafe.parser.TokenQueue
Field Summary | |
private int |
end
|
boolean |
notempty
Do not write. |
private int |
start
|
private Token[] |
toks
Contents of queue tokens. |
Constructor Summary | |
TokenQueue()
|
Method Summary | |
void |
clear()
Empties lookahead queue. |
void |
dequeue(Token dst)
Removes head of token queue. |
Token |
elementAt(int n)
Returns n th element in token queue.
|
void |
enqueue(Token td)
Pushes a token onto the lookahead queue. |
void |
setElementAt(int n,
Token t)
|
int |
size()
Returns number of items in token queue. |
private java.lang.String |
stateToString()
|
void |
zzz(java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Token[] toks
start
and end
being output and input
pointers, respectively. toks[start]
is first
element; toks[(end + toks.len - 1) % toks.len]
is
last element.
private int start
private int end
public boolean notempty
Constructor Detail |
public TokenQueue()
Method Detail |
public int size()
public Token elementAt(int n)
n
th element in token queue.
requires 0 <= n;
public void setElementAt(int n, Token t)
public void clear()
public void dequeue(Token dst)
requires dst != null;
public void enqueue(Token td)
requires td != null;
private java.lang.String stateToString()
public void zzz(java.lang.String prefix)
|
ESC/Java2 © 2003,2004,2005 David Cok and Joseph Kiniry © 2005 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |