Package org.antlr.v4.codegen.model
Class ListenerFile
- java.lang.Object
-
- org.antlr.v4.codegen.model.OutputModelObject
-
- org.antlr.v4.codegen.model.OutputFile
-
- org.antlr.v4.codegen.model.ListenerFile
-
- Direct Known Subclasses:
BaseListenerFile
public class ListenerFile extends OutputFile
A model object representing a parse tree listener file. These are the rules specific events triggered by a parse tree visitor.
-
-
Field Summary
Fields Modifier and Type Field Description String
accessLevel
String
exportMacro
String
genPackage
String
grammarName
Action
header
Map<String,String>
listenerLabelRuleNames
For listener 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>
listenerNames
The names of all listener contexts.Map<String,Action>
namedActions
String
parserName
-
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 ListenerFile(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
-
listenerLabelRuleNames
public Map<String,String> listenerLabelRuleNames
For listener 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
-
ListenerFile
public ListenerFile(OutputModelFactory factory, String fileName)
-
-