Package org.antlr.v4.codegen.model
Class Recognizer
- java.lang.Object
-
- org.antlr.v4.codegen.model.OutputModelObject
-
- org.antlr.v4.codegen.model.Recognizer
-
public abstract class Recognizer extends OutputModelObject
-
-
Field Summary
Fields Modifier and Type Field Description String
accessLevel
SerializedATN
atn
String
grammarFileName
String
grammarName
List<String>
literalNames
String
name
Set<String>
ruleNames
Collection<Rule>
rules
LinkedHashMap<Rule,RuleSempredFunction>
sempredFuncs
ActionChunk
superClass
List<String>
symbolicNames
List<String>
tokenNames
Deprecated.This field is provided only for compatibility with code generation targets which have not yet been updated to useliteralNames
andsymbolicNames
.Map<String,Integer>
tokens
-
Fields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory
-
-
Constructor Summary
Constructors Constructor Description Recognizer(OutputModelFactory factory)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static List<String>
translateTokenStringsToTarget(String[] tokenStrings, CodeGenerator gen)
protected static String
translateTokenStringToTarget(String tokenName, CodeGenerator gen)
-
-
-
Field Detail
-
name
public String name
-
grammarName
public String grammarName
-
grammarFileName
public String grammarFileName
-
accessLevel
public String accessLevel
-
tokenNames
@Deprecated public List<String> tokenNames
Deprecated.This field is provided only for compatibility with code generation targets which have not yet been updated to useliteralNames
andsymbolicNames
.
-
rules
public Collection<Rule> rules
-
superClass
public ActionChunk superClass
-
atn
public SerializedATN atn
-
sempredFuncs
public LinkedHashMap<Rule,RuleSempredFunction> sempredFuncs
-
-
Constructor Detail
-
Recognizer
public Recognizer(OutputModelFactory factory)
-
-
Method Detail
-
translateTokenStringsToTarget
protected static List<String> translateTokenStringsToTarget(String[] tokenStrings, CodeGenerator gen)
-
translateTokenStringToTarget
protected static String translateTokenStringToTarget(String tokenName, CodeGenerator gen)
-
-