public class DefaultMustacheVisitor extends Object implements MustacheVisitor
Modifier and Type | Field and Description |
---|---|
protected DefaultMustacheFactory |
df |
protected List<Code> |
list |
protected static Logger |
logger |
Constructor and Description |
---|
DefaultMustacheVisitor(DefaultMustacheFactory df) |
Modifier and Type | Method and Description |
---|---|
void |
addPragmaHandler(String pragma,
PragmaHandler handler) |
void |
checkName(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
comment(TemplateContext templateContext,
String comment) |
void |
eof(TemplateContext templateContext) |
void |
extend(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
iterable(TemplateContext templateContext,
String variable,
Mustache mustache) |
Mustache |
mustache(TemplateContext templateContext) |
void |
name(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
notIterable(TemplateContext templateContext,
String variable,
Mustache mustache) |
void |
partial(TemplateContext tc,
String variable) |
void |
pragma(TemplateContext tc,
String pragma,
String args) |
void |
value(TemplateContext tc,
String variable,
boolean encoded) |
void |
write(TemplateContext tc,
String text) |
protected static Logger logger
protected DefaultMustacheFactory df
public DefaultMustacheVisitor(DefaultMustacheFactory df)
public void addPragmaHandler(String pragma, PragmaHandler handler)
public Mustache mustache(TemplateContext templateContext)
mustache
in interface MustacheVisitor
public void iterable(TemplateContext templateContext, String variable, Mustache mustache)
iterable
in interface MustacheVisitor
public void notIterable(TemplateContext templateContext, String variable, Mustache mustache)
notIterable
in interface MustacheVisitor
public void name(TemplateContext templateContext, String variable, Mustache mustache)
name
in interface MustacheVisitor
public void checkName(TemplateContext templateContext, String variable, Mustache mustache)
checkName
in interface MustacheVisitor
public void partial(TemplateContext tc, String variable)
partial
in interface MustacheVisitor
public void value(TemplateContext tc, String variable, boolean encoded)
value
in interface MustacheVisitor
public void write(TemplateContext tc, String text)
write
in interface MustacheVisitor
public void pragma(TemplateContext tc, String pragma, String args)
pragma
in interface MustacheVisitor
public void eof(TemplateContext templateContext)
eof
in interface MustacheVisitor
public void extend(TemplateContext templateContext, String variable, Mustache mustache)
extend
in interface MustacheVisitor
public void comment(TemplateContext templateContext, String comment)
comment
in interface MustacheVisitor
Copyright © 2018. All rights reserved.