public class DefaultMustache extends DefaultCode implements Mustache
| Modifier and Type | Field and Description |
|---|---|
private Code[] |
codes |
private boolean |
inited |
private boolean |
isRecursive |
appended, binding, df, mustache, name, oh, returnThis, tc, type| Constructor and Description |
|---|
DefaultMustache(TemplateContext tc,
DefaultMustacheFactory df,
Code[] codes,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.io.Writer |
execute(java.io.Writer writer,
java.util.List<java.lang.Object> scopes)
The default behavior is to run the codes and append the captured text.
|
Code[] |
getCodes()
Get the underlying code objects.
|
void |
identity(java.io.Writer writer)
Execute the mustache to output itself.
|
void |
init()
Initialize the mustache before executing.
|
Node |
invert(java.lang.String text)
Invert this mustache given output text.
|
boolean |
isRecursive() |
java.io.Writer |
run(java.io.Writer writer,
java.util.List<java.lang.Object> scopes)
Only executes the codes.
|
void |
setCodes(Code[] newcodes)
Change the underlying codes of the mustache implementation.
|
void |
setRecursive() |
addScope, append, appendText, clone, clone, filterText, get, getName, invert, matchAppended, runIdentity, tagprivate Code[] codes
private boolean inited
private boolean isRecursive
public DefaultMustache(TemplateContext tc, DefaultMustacheFactory df, Code[] codes, java.lang.String name)
public Code[] getCodes()
Mustachepublic java.io.Writer run(java.io.Writer writer,
java.util.List<java.lang.Object> scopes)
Mustacherun in interface Mustacherun in class DefaultCodewriter - write the output of the executed template herescopes - the array of scopes to executepublic Node invert(java.lang.String text)
Mustachepublic void setCodes(Code[] newcodes)
Mustachepublic java.io.Writer execute(java.io.Writer writer,
java.util.List<java.lang.Object> scopes)
DefaultCodepublic void identity(java.io.Writer writer)
Mustachepublic void init()
Mustachepublic boolean isRecursive()
public void setRecursive()