|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplatypus.Tokens
public class Tokens
Convenience class for handling an array of tokens (that constitute an input line)
| Field Summary | |
|---|---|
private GDD |
gdd
|
private GID |
gid
|
private Literals |
lits
|
private Token[] |
toks
|
| Constructor Summary | |
|---|---|
Tokens(int size)
|
|
| Method Summary | |
|---|---|
int |
addToken(Token t,
int index)
Add a token to the Tokens array |
Token[] |
getToks()
|
int |
process()
Process the tokens in the array gid.tokens at a basic level: line number, text, and commands are all dispatched to the routines that process them further. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Token[] toks
private final GDD gdd
private final GID gid
private final Literals lits
| Constructor Detail |
|---|
public Tokens(int size)
| Method Detail |
|---|
public int addToken(Token t,
int index)
t - the token to addindex - where to add it in the array
public int process()
public Token[] getToks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||