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 TemplateCompiler
protected 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 TemplateCompiler
protected void end()
end
in class TemplateCompiler
protected void plain()
plain
in class TemplateCompiler
protected void script()
script
in class TemplateCompiler
protected void expr()
expr
in class TemplateCompiler
protected void message()
message
in class TemplateCompiler
protected void action(boolean absolute)
action
in class TemplateCompiler
protected void startTag()
startTag
in class TemplateCompiler
protected void endTag()
endTag
in class TemplateCompiler
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly