|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that describes the set of defined tokens
Method Summary | |
java.lang.Object |
clone()
|
void |
define(TokenSymbol ts)
define a token symbol |
java.lang.String |
getName()
Get the name of the token manager |
java.lang.String |
getTokenStringAt(int idx)
Get a token string by index |
TokenSymbol |
getTokenSymbol(java.lang.String sym)
Get the TokenSymbol for a string |
TokenSymbol |
getTokenSymbolAt(int idx)
|
java.util.Enumeration |
getTokenSymbolElements()
Get an enumerator over the symbol table |
java.util.Enumeration |
getTokenSymbolKeys()
|
Vector |
getVocabulary()
Get the token vocabulary (read-only). |
boolean |
isReadOnly()
Is this token manager read-only? |
void |
mapToTokenSymbol(java.lang.String name,
TokenSymbol sym)
|
int |
maxTokenType()
Get the highest token type in use |
int |
nextTokenType()
Get the next unused token type |
void |
setName(java.lang.String n)
|
void |
setReadOnly(boolean ro)
|
boolean |
tokenDefined(java.lang.String symbol)
Is a token symbol defined? |
Method Detail |
public java.lang.Object clone()
public void define(TokenSymbol ts)
public java.lang.String getName()
public java.lang.String getTokenStringAt(int idx)
public TokenSymbol getTokenSymbol(java.lang.String sym)
public TokenSymbol getTokenSymbolAt(int idx)
public java.util.Enumeration getTokenSymbolElements()
public java.util.Enumeration getTokenSymbolKeys()
public Vector getVocabulary()
public boolean isReadOnly()
public void mapToTokenSymbol(java.lang.String name, TokenSymbol sym)
public int maxTokenType()
public int nextTokenType()
public void setName(java.lang.String n)
public void setReadOnly(boolean ro)
public boolean tokenDefined(java.lang.String symbol)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |