Package org.antlr.v4.codegen.model
Class VisitorFile
- java.lang.Object
-
- org.antlr.v4.codegen.model.OutputModelObject
-
- org.antlr.v4.codegen.model.OutputFile
-
- org.antlr.v4.codegen.model.VisitorFile
-
- Direct Known Subclasses:
BaseVisitorFile
public class VisitorFile extends OutputFile
-
-
Field Summary
Fields Modifier and Type Field Description String
accessLevel
String
exportMacro
String
genPackage
String
grammarName
Action
header
Map<String,Action>
namedActions
String
parserName
Map<String,String>
visitorLabelRuleNames
For rule contexts created for a labeled outer alternative, maps from a listener context name to the name of the rule which defines the context.Set<String>
visitorNames
The names of all rule contexts which may need to be visited.-
Fields inherited from class org.antlr.v4.codegen.model.OutputFile
ANTLRVersion, fileName, grammarFileName, InputSymbolType, TokenLabelType
-
Fields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory
-
-
Constructor Summary
Constructors Constructor Description VisitorFile(OutputModelFactory factory, String fileName)
-
Method Summary
-
Methods inherited from class org.antlr.v4.codegen.model.OutputFile
buildNamedActions, buildNamedActions
-
-
-
-
Field Detail
-
genPackage
public String genPackage
-
accessLevel
public String accessLevel
-
exportMacro
public String exportMacro
-
grammarName
public String grammarName
-
parserName
public String parserName
-
visitorNames
public Set<String> visitorNames
The names of all rule contexts which may need to be visited.
-
visitorLabelRuleNames
public Map<String,String> visitorLabelRuleNames
For rule contexts created for a labeled outer alternative, maps from a listener context name to the name of the rule which defines the context.
-
header
public Action header
-
-
Constructor Detail
-
VisitorFile
public VisitorFile(OutputModelFactory factory, String fileName)
-
-