public class GroovyTemplateCompiler extends TemplateCompiler
TemplateCompiler.Tag
Modifier and Type | Field and Description |
---|---|
protected List<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 String |
checkScalaCompatibility(String source)
Makes the code scala compatible (for the scala module).
|
protected String |
checkScalaComptability(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 String |
source() |
protected void |
startTag() |
protected static final int maxPlainTextLength
public BaseTemplate compile(BaseTemplate template)
compile
in class TemplateCompiler
protected String source()
source
in class TemplateCompiler
@Deprecated protected String checkScalaComptability(String source)
protected String checkScalaCompatibility(String source)
protected 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