public class GroovyTemplate extends Object implements Externalizable
| Constructor and Description |
|---|
GroovyTemplate() |
GroovyTemplate(Reader scriptReader) |
GroovyTemplate(String templateText) |
GroovyTemplate(String id,
String name,
Reader scriptReader) |
GroovyTemplate(String templateId,
String templateName,
String templateText) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getClassName() |
String |
getGroovy() |
String |
getId() |
String |
getText() |
int |
hashCode() |
void |
readExternal(ObjectInput in) |
String |
render() |
String |
render(Locale locale) |
String |
render(Map binding) |
String |
render(Map binding,
Locale locale) |
void |
render(Writer writer) |
void |
render(Writer writer,
Locale locale) |
void |
render(Writer writer,
Map binding) |
void |
render(Writer writer,
Map binding,
Locale locale) |
void |
writeExternal(ObjectOutput out) |
public GroovyTemplate()
public GroovyTemplate(String id, String name, Reader scriptReader) throws IOException, TemplateCompilationException
public GroovyTemplate(Reader scriptReader) throws IOException, TemplateCompilationException
public GroovyTemplate(String templateText) throws TemplateCompilationException
TemplateCompilationExceptionpublic GroovyTemplate(String templateId, String templateName, String templateText) throws TemplateCompilationException
TemplateCompilationExceptionpublic String getId()
public String getClassName()
public String getText()
public String getGroovy()
public void render(Writer writer) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic void render(Writer writer, Locale locale) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic void render(Writer writer, Map binding, Locale locale) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic void render(Writer writer, Map binding) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic String render() throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic String render(Locale locale) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic String render(Map binding) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic String render(Map binding, Locale locale) throws IOException, TemplateRuntimeException
IOExceptionTemplateRuntimeExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionExternalizable.writeExternal(java.io.ObjectOutput)public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionExternalizable.readExternal(java.io.ObjectInput)Copyright © 2017 JBoss by Red Hat. All Rights Reserved.