Class AbstractGenerator
- java.lang.Object
-
- org.kie.workbench.common.stunner.svg.gen.codegen.impl.AbstractGenerator
-
- Direct Known Subclasses:
AbstractPrimitiveDefinitionGenerator,SVGViewDefinitionGenerator,SVGViewFactoryGenerator
public abstract class AbstractGenerator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected freemarker.template.Configurationconfigprotected static ExceptionInInitializerErrorINITIALIZER_EXCEPTION
-
Constructor Summary
Constructors Constructor Description AbstractGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StringformatDouble(double value)static StringformatDouble(String pattern, double... values)static StringformatString(String pattern, String... values)protected abstract StringgetTemplatePath()protected StringBufferwriteTemplate(Map<String,Object> ctxt)protected StringBufferwriteTemplate(Map<String,Object> ctxt, String path)
-
-
-
Field Detail
-
INITIALIZER_EXCEPTION
protected static ExceptionInInitializerError INITIALIZER_EXCEPTION
-
config
protected freemarker.template.Configuration config
-
-
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(double value)
-
-