public class BuildDependencyGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected CodeGenerator |
generator |
protected Grammar |
grammar |
protected String |
grammarFileName |
protected org.antlr.stringtemplate.StringTemplateGroup |
templates |
protected String |
tokenVocab |
protected Tool |
tool |
Constructor and Description |
---|
BuildDependencyGenerator(Tool tool,
String grammarFileName) |
Modifier and Type | Method and Description |
---|---|
org.antlr.stringtemplate.StringTemplate |
getDependencies() |
List<File> |
getDependenciesFileList()
Return a list of File objects that name files ANTLR will read
to process T.g; This can be .tokens files if the grammar uses the tokenVocab option
as well as any imported grammar files.
|
List<File> |
getGeneratedFileList()
From T.g return a list of File objects that
name files ANTLR will emit from T.g.
|
CodeGenerator |
getGenerator() |
List<File> |
getNonImportDependenciesFileList()
Return a list of File objects that name files ANTLR will read
to process T.g; This can only be .tokens files and only
if they use the tokenVocab option.
|
String |
getTokenVocab() |
String |
groomQualifiedFileName(String outputDir,
String fileName) |
void |
loadDependencyTemplates() |
protected String grammarFileName
protected String tokenVocab
protected Tool tool
protected Grammar grammar
protected CodeGenerator generator
protected org.antlr.stringtemplate.StringTemplateGroup templates
public BuildDependencyGenerator(Tool tool, String grammarFileName) throws IOException, antlr.TokenStreamException, antlr.RecognitionException
IOException
antlr.TokenStreamException
antlr.RecognitionException
public List<File> getGeneratedFileList()
public List<File> getDependenciesFileList()
public List<File> getNonImportDependenciesFileList()
public org.antlr.stringtemplate.StringTemplate getDependencies()
public void loadDependencyTemplates()
public String getTokenVocab()
public CodeGenerator getGenerator()
Copyright © 2020. All rights reserved.