|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.neoworks.rdc.TokenList
Class which holds a vector of Tokens, and the last position accessed in the array.
| Field Summary | |
protected java.util.Vector |
tokenData
|
| Constructor Summary | |
TokenList()
Create a new empty list of tokens |
|
TokenList(TokenList copyList)
Copy constructor. |
|
TokenList(java.util.Vector newTokenList)
Create a new token list from a vector of tokens. |
|
| Method Summary | |
void |
addToken(Token newToken)
This function appends a token to the end of the TokenList, and increments nextPosition. |
int |
getSize()
Returns the index of the next position in the list |
Token |
getTokenAt(int tokenIndex)
Returns the token at a position in the list. |
void |
removeTokenAt(int tokenIndex)
Removes a token from the list at the specified position |
int |
tokenIsIn(Token findThisToken)
Find the index of a token in the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector tokenData
| Constructor Detail |
public TokenList(TokenList copyList)
copyList - The token list to copy into this onepublic TokenList(java.util.Vector newTokenList)
newTokenList - A vector of tokens to start the new tokenListpublic TokenList()
| Method Detail |
public void addToken(Token newToken)
newToken - The new token to be added to the array.public Token getTokenAt(int tokenIndex)
tokenIndex - The index of the token in the list to return
public void removeTokenAt(int tokenIndex)
tokenIndex - The index of the token in the list to removepublic int getSize()
public int tokenIsIn(Token findThisToken)
findThisToken - The token to look for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||