Class AbstractGenerator

    • Field Detail

      • config

        protected freemarker.template.Configuration config
    • Constructor Detail

      • AbstractGenerator

        public AbstractGenerator()
    • Method Detail

      • getTemplatePath

        protected abstract String getTemplatePath()
      • writeTemplate

        protected StringBuffer writeTemplate​(Map<String,​Object> ctxt,
                                             String path)
                                      throws org.uberfire.annotations.processors.exceptions.GenerationException
        Throws:
        org.uberfire.annotations.processors.exceptions.GenerationException
      • writeTemplate

        protected StringBuffer writeTemplate​(Map<String,​Object> ctxt)
                                      throws org.uberfire.annotations.processors.exceptions.GenerationException
        Throws:
        org.uberfire.annotations.processors.exceptions.GenerationException
      • formatDouble

        public static String formatDouble​(String pattern,
                                          double... values)
      • formatDouble

        public static String formatDouble​(double value)