public abstract class TemplateCompiler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TemplateCompiler.Tag |
Modifier and Type | Field and Description |
---|---|
protected java.lang.StringBuilder |
compiledSource |
protected int |
currentLine |
protected boolean |
doNextScan |
protected TemplateParser |
parser |
protected boolean |
skipLineBreak |
protected TemplateParser.Token |
state |
protected int |
tagIndex |
protected java.util.Stack<TemplateCompiler.Tag> |
tagsStack |
protected BaseTemplate |
template |
Constructor and Description |
---|
TemplateCompiler() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
action(boolean absolute) |
BaseTemplate |
compile(BaseTemplate template) |
BaseTemplate |
compile(VirtualFile file) |
protected abstract void |
end() |
protected abstract void |
endTag() |
protected abstract void |
expr() |
protected void |
generate(BaseTemplate template) |
protected abstract void |
head() |
protected void |
markLine(int line) |
protected abstract void |
message() |
protected abstract void |
plain() |
protected void |
print(java.lang.String text) |
protected void |
println() |
protected void |
println(java.lang.String text) |
protected abstract void |
script() |
protected abstract java.lang.String |
source() |
protected abstract void |
startTag() |
protected java.lang.StringBuilder compiledSource
protected BaseTemplate template
protected TemplateParser parser
protected boolean doNextScan
protected TemplateParser.Token state
protected java.util.Stack<TemplateCompiler.Tag> tagsStack
protected int tagIndex
protected boolean skipLineBreak
protected int currentLine
public BaseTemplate compile(BaseTemplate template)
public BaseTemplate compile(VirtualFile file)
protected void generate(BaseTemplate template)
protected abstract java.lang.String source()
protected abstract void head()
protected abstract void end()
protected abstract void plain()
protected abstract void script()
protected abstract void expr()
protected abstract void message()
protected abstract void action(boolean absolute)
protected abstract void startTag()
protected abstract void endTag()
protected void markLine(int line)
protected void println()
protected void print(java.lang.String text)
protected void println(java.lang.String text)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly