public class BuildDependencyGenerator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected CodeGenerator |
generator |
protected Grammar |
grammar |
protected java.lang.String |
grammarFileName |
protected org.antlr.stringtemplate.StringTemplateGroup |
templates |
protected java.lang.String |
tokenVocab |
protected Tool |
tool |
| Constructor and Description |
|---|
BuildDependencyGenerator(Tool tool,
java.lang.String grammarFileName) |
| Modifier and Type | Method and Description |
|---|---|
org.antlr.stringtemplate.StringTemplate |
getDependencies() |
java.util.List<java.io.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.
|
java.util.List<java.io.File> |
getGeneratedFileList()
From T.g return a list of File objects that
name files ANTLR will emit from T.g.
|
CodeGenerator |
getGenerator() |
java.util.List<java.io.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.
|
java.lang.String |
getTokenVocab() |
java.lang.String |
groomQualifiedFileName(java.lang.String outputDir,
java.lang.String fileName) |
void |
loadDependencyTemplates() |
protected java.lang.String grammarFileName
protected java.lang.String tokenVocab
protected Tool tool
protected Grammar grammar
protected CodeGenerator generator
protected org.antlr.stringtemplate.StringTemplateGroup templates
public BuildDependencyGenerator(Tool tool, java.lang.String grammarFileName) throws java.io.IOException, antlr.TokenStreamException, antlr.RecognitionException
java.io.IOExceptionantlr.TokenStreamExceptionantlr.RecognitionExceptionpublic java.util.List<java.io.File> getGeneratedFileList()
public java.util.List<java.io.File> getDependenciesFileList()
public java.util.List<java.io.File> getNonImportDependenciesFileList()
public org.antlr.stringtemplate.StringTemplate getDependencies()
public void loadDependencyTemplates()
public java.lang.String getTokenVocab()
public CodeGenerator getGenerator()
public java.lang.String groomQualifiedFileName(java.lang.String outputDir,
java.lang.String fileName)
Copyright © 2012. All Rights Reserved.