DefaultGenerator, MetaGeneratorpublic abstract class AbstractGenerator extends Object
| Constructor | Description |
|---|---|
AbstractGenerator() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
embeddedTemplateExists(String name) |
|
String |
getCPResourcePath(String name) |
|
String |
getFullTemplateFile(CodegenConfig config,
String templateFile) |
Get the template file path with template dir prepended, and use the
library template if exists.
|
Reader |
getTemplateReader(String name) |
|
String |
readResourceContents(String resourceFilePath) |
|
String |
readTemplate(String name) |
|
File |
writeToFile(String filename,
String contents) |
public File writeToFile(String filename, String contents) throws IOException
IOExceptionpublic String getFullTemplateFile(CodegenConfig config, String templateFile)
config - Codegen configtemplateFile - Template filepublic boolean embeddedTemplateExists(String name)
Copyright © 2019. All rights reserved.