public abstract class TemplateCompiler extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TemplateCompiler.Tag |
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
compiledSource |
protected int |
currentLine |
protected boolean |
doNextScan |
protected TemplateParser |
parser |
protected boolean |
skipLineBreak |
protected TemplateParser.Token |
state |
protected int |
tagIndex |
protected 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(String text) |
protected void |
println() |
protected void |
println(String text) |
protected abstract void |
script() |
protected abstract String |
source() |
protected abstract void |
startTag() |
protected StringBuilder compiledSource
protected BaseTemplate template
protected TemplateParser parser
protected boolean doNextScan
protected TemplateParser.Token state
protected 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 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(String text)
protected void println(String text)
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly