public class GroovyTemplateCompiler extends TemplateCompiler
TemplateCompiler.Tag| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.lang.String> |
extensionsClassnames |
protected static int |
maxPlainTextLength |
compiledSource, currentLine, doNextScan, parser, skipLineBreak, state, tagIndex, tagsStack, template| Constructor and Description |
|---|
GroovyTemplateCompiler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
action(boolean absolute) |
protected java.lang.String |
checkScalaCompatibility(java.lang.String source)
Makes the code scala compatible (for the scala module).
|
protected java.lang.String |
checkScalaComptability(java.lang.String source)
Deprecated.
|
BaseTemplate |
compile(BaseTemplate template) |
protected void |
end() |
protected void |
endTag() |
protected void |
expr() |
protected void |
head() |
protected void |
message() |
protected void |
plain()
Interesting performance observation: Calling print(); from java (in ExecutableTemplate) called from groovy is
MUCH slower than java returning string to groovy which then prints with out.print();
|
protected void |
script() |
protected java.lang.String |
source() |
protected void |
startTag() |
protected java.util.List<java.lang.String> extensionsClassnames
protected static final int maxPlainTextLength
public BaseTemplate compile(BaseTemplate template)
compile in class TemplateCompilerprotected java.lang.String source()
source in class TemplateCompiler@Deprecated protected java.lang.String checkScalaComptability(java.lang.String source)
protected java.lang.String checkScalaCompatibility(java.lang.String source)
source - The string representation of the codeprotected void head()
head in class TemplateCompilerprotected void end()
end in class TemplateCompilerprotected void plain()
plain in class TemplateCompilerprotected void script()
script in class TemplateCompilerprotected void expr()
expr in class TemplateCompilerprotected void message()
message in class TemplateCompilerprotected void action(boolean absolute)
action in class TemplateCompilerprotected void startTag()
startTag in class TemplateCompilerprotected void endTag()
endTag in class TemplateCompilerGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly