public class CodeGen extends Object
| Constructor and Description |
|---|
CodeGen(Path templatesFolder,
Path outputFolder,
boolean verbose,
boolean listGeneratedFiles,
boolean overwrite,
com.google.gson.JsonObject config) |
| Modifier and Type | Method and Description |
|---|---|
void |
generateCode(ModuleDefinition module) |
void |
generateMavenPom(ModuleDefinition module,
Path templatePomXml) |
void |
generateNpmPackage(ModuleDefinition module,
Path templatePackJson,
Path templateBowerJson) |
static String |
readFile(File file) |
void |
setTemplatesDir(Path templatesFolder) |
public CodeGen(Path templatesFolder, Path outputFolder, boolean verbose, boolean listGeneratedFiles, boolean overwrite, com.google.gson.JsonObject config) throws IOException
IOExceptionpublic void setTemplatesDir(Path templatesFolder) throws IOException
IOExceptionpublic void generateCode(ModuleDefinition module) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionpublic static String readFile(File file) throws IOException
IOExceptionpublic void generateMavenPom(ModuleDefinition module, Path templatePomXml) throws IOException, freemarker.template.TemplateException, ParserConfigurationException, SAXException, TransformerException
IOExceptionfreemarker.template.TemplateExceptionParserConfigurationExceptionSAXExceptionTransformerExceptionpublic void generateNpmPackage(ModuleDefinition module, Path templatePackJson, Path templateBowerJson) throws IOException, freemarker.template.TemplateException, ParserConfigurationException, SAXException, TransformerException
IOExceptionfreemarker.template.TemplateExceptionParserConfigurationExceptionSAXExceptionTransformerExceptionCopyright © 2016. All rights reserved.