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, tokenDefined
protected Grammar grammar
public Object clone()
clone
in interface TokenManager
clone
in class SimpleTokenManager
public void define(TokenSymbol ts)
define
in interface TokenManager
define
in class SimpleTokenManager
public void define(String s, int ttype)
public boolean isReadOnly()
isReadOnly
in interface TokenManager
isReadOnly
in class SimpleTokenManager
public int nextTokenType()
nextTokenType
in interface TokenManager
nextTokenType
in class SimpleTokenManager