public abstract class Recognizer extends OutputModelObject
| Modifier and Type | Field and Description |
|---|---|
SerializedATN |
atn
|
String |
grammarFileName
|
String |
grammarName
|
String |
literalNames
|
String |
name
|
Set |
ruleNames
|
Collection |
rules
|
LinkedHashMap |
sempredFuncs
|
ActionChunk |
superClass
|
String |
symbolicNames
|
String |
tokenNames
Deprecated.
This field is provided only for compatibility with code generation targets which have not yet been updated to use
literalNames and symbolicNames.
|
Map |
tokens
|
ast, factory| Constructor and Description |
|---|
Recognizer(OutputModelFactory
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
translateTokenStringsToTarget(String
|
protected static String |
translateTokenStringToTarget(String
|
public Stringname
public StringgrammarName
public StringgrammarFileName
@Deprecated public String[] tokenNames
literalNames and symbolicNames.
public String[] literalNames
public String[] symbolicNames
public Collection<Rule > rules
public ActionChunksuperClass
public SerializedATNatn
public LinkedHashMap<Rule ,RuleSempredFunction > sempredFuncs
public Recognizer(OutputModelFactoryfactory)
protected static String[] translateTokenStringsToTarget(String [] tokenStrings, CodeGenerator gen)
protected static StringtranslateTokenStringToTarget(String tokenName, CodeGenerator gen)