public class GroovyTemplate extends BaseTemplate
| Modifier and Type | Class and Description |
|---|---|
static class |
GroovyTemplate.ExecutableTemplate
Groovy template
|
static class |
GroovyTemplate.TClassLoader |
BaseTemplate.RawDatacompiledSource, compiledTemplate, compiledTemplateName, currentTemplate, doBodyLines, layout, layoutData, linesMatrix, timestamp| Constructor and Description |
|---|
GroovyTemplate(String source) |
GroovyTemplate(String name,
String source) |
| Modifier and Type | Method and Description |
|---|---|
protected Throwable |
cleanStackTrace(Throwable e) |
void |
compile() |
protected String |
internalRender(Map<String,Object> args)
The internal rendering method - When one template calls another template,
this method is used.
|
protected static boolean |
isSimpleParam(Class type) |
protected void |
onCompileEnd() |
static <T> void |
registerFormatter(String format,
SafeFormatter formatter) |
String |
render(Map<String,Object> args)
Starts the rendering process without modifying the args-map
|
protected groovy.lang.Binding |
setUpBindingVariables(Map<String,Object> args) |
protected org.codehaus.groovy.control.CompilerConfiguration |
setUpCompilerConfiguration() |
loadFromCache, loadPrecompiledpublic GroovyTemplate(String source)
public static <T> void registerFormatter(String format, SafeFormatter formatter)
protected org.codehaus.groovy.control.CompilerConfiguration setUpCompilerConfiguration()
protected void onCompileEnd()
public String render(Map<String,Object> args)
Templateprotected String internalRender(Map<String,Object> args)
TemplateinternalRender in class Templateprotected Throwable cleanStackTrace(Throwable e)
cleanStackTrace in class BaseTemplateprotected static boolean isSimpleParam(Class type)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly