public class BuildDependencyGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected Grammar |
g |
protected CodeGenerator |
generator |
protected org.stringtemplate.v4.STGroup |
templates |
protected Tool |
tool |
Constructor and Description |
---|
BuildDependencyGenerator(Tool tool,
Grammar g) |
Modifier and Type | Method and Description |
---|---|
org.stringtemplate.v4.ST |
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.
|
File |
getOutputFile(String fileName) |
String |
groomQualifiedFileName(String outputDir,
String fileName) |
void |
loadDependencyTemplates() |
protected Tool tool
protected Grammar g
protected CodeGenerator generator
protected org.stringtemplate.v4.STGroup templates
public List<File> getGeneratedFileList()
public List<File> getDependenciesFileList()
public List<File> getNonImportDependenciesFileList()
public org.stringtemplate.v4.ST getDependencies()
public void loadDependencyTemplates()
public CodeGenerator getGenerator()
Copyright © 1992–2020 ANTLR. All rights reserved.