class ImportVocabTokenManager extends SimpleTokenManager implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected Grammar |
grammar |
antlrTool, maxToken, name, readOnly, vocabulary| Constructor and Description |
|---|
ImportVocabTokenManager(Grammar grammar,
String filename_,
String name_,
Tool tool_) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
void |
define(String s,
int ttype)
define a token.
|
void |
define(TokenSymbol ts)
define a token.
|
boolean |
isReadOnly()
importVocab token manager is read-only if output would be same as input
|
int |
nextTokenType()
Get the next unused token type.
|
getName, getTokenStringAt, getTokenSymbol, getTokenSymbolAt, getTokenSymbolElements, getTokenSymbolKeys, getVocabulary, mapToTokenSymbol, maxTokenType, setName, setReadOnly, tokenDefinedprotected Grammar grammar
public Object clone()
clone in interface TokenManagerclone in class SimpleTokenManagerpublic void define(TokenSymbol ts)
define in interface TokenManagerdefine in class SimpleTokenManagerpublic void define(String s, int ttype)
public boolean isReadOnly()
isReadOnly in interface TokenManagerisReadOnly in class SimpleTokenManagerpublic int nextTokenType()
nextTokenType in interface TokenManagernextTokenType in class SimpleTokenManager