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