Class AbstractGenerator

    • Constructor Detail

      • AbstractGenerator

        public AbstractGenerator()
    • Method Detail

      • readTemplate

        public String readTemplate​(String name)
      • getTemplateReader

        public Reader getTemplateReader​(String name)
      • getFullTemplateFile

        public String getFullTemplateFile​(CodegenConfig config,
                                          String templateFile)
        Get the template file path with template dir prepended, and use the library template if exists.
        Parameters:
        config - Codegen config
        templateFile - Template file
        Returns:
        String Full template file path
      • readResourceContents

        public String readResourceContents​(String resourceFilePath)
      • embeddedTemplateExists

        public boolean embeddedTemplateExists​(String name)
      • getCPResourcePath

        public String getCPResourcePath​(String name)