| |
|
| java.lang.Object antlr.SimpleTokenManager
All known Subclasses: antlr.ImportVocabTokenManager,
maxToken | protected int maxToken(Code) | | |
readOnly | protected boolean readOnly(Code) | | |
getName | public String getName()(Code) | | Simple token manager doesn't have a name -- must be set externally
|
getTokenStringAt | public String getTokenStringAt(int idx)(Code) | | Get a token symbol by index
|
getTokenSymbolAt | public TokenSymbol getTokenSymbolAt(int idx)(Code) | | Get a token symbol by index
|
getTokenSymbolElements | public Enumeration getTokenSymbolElements()(Code) | | Get an enumerator over the symbol table
|
getVocabulary | public Vector getVocabulary()(Code) | | Get the token vocabulary (read-only).
A Vector of TokenSymbol |
isReadOnly | public boolean isReadOnly()(Code) | | Simple token manager is not read-only
|
mapToTokenSymbol | public void mapToTokenSymbol(String name, TokenSymbol sym)(Code) | | Map a label or string to an existing token symbol
|
maxTokenType | public int maxTokenType()(Code) | | Get the highest token type in use
|
nextTokenType | public int nextTokenType()(Code) | | Get the next unused token type
|
setName | public void setName(String name_)(Code) | | Set the name of the token manager
|
setReadOnly | public void setReadOnly(boolean ro)(Code) | | |
tokenDefined | public boolean tokenDefined(String symbol)(Code) | | Is a token symbol defined?
|
|
|
|