public class GroovyScript extends Object
| Constructor and Description |
|---|
GroovyScript(String templateId,
String groovyText,
Class<?> scriptClass,
Map<Integer,TextItem> lineTable) |
| Modifier and Type | Method and Description |
|---|---|
String |
getGroovyText() |
Class<?> |
getScriptClass() |
String |
getTemplateId() |
void |
render(Map context,
Writer writer,
Locale locale)
Renders the script with the provided context and locale to the specified writer.
|
public String getTemplateId()
public String getGroovyText()
public Class<?> getScriptClass()
public void render(Map context, Writer writer, Locale locale) throws IOException, TemplateRuntimeException
context - the contextwriter - the writerlocale - the localeIOExceptionTemplateRuntimeExceptionCopyright © 2016 JBoss by Red Hat. All Rights Reserved.