public class DefaultCode extends Object implements Code, Cloneable
Modifier and Type | Field and Description |
---|---|
protected String |
appended |
protected Binding |
binding |
protected DefaultMustacheFactory |
df |
protected Mustache |
mustache |
protected String |
name |
protected ObjectHandler |
oh |
protected boolean |
returnThis |
protected TemplateContext |
tc |
protected String |
type |
Constructor and Description |
---|
DefaultCode() |
DefaultCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
String name,
String type) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addScope(List<Object> scopes,
Object scope) |
void |
append(String text) |
protected Writer |
appendText(Writer writer) |
Object |
clone() |
Object |
clone(Set<Code> seen) |
Writer |
execute(Writer writer,
List<Object> scopes)
The default behavior is to run the codes and append the captured text.
|
protected void |
filterText() |
Object |
get(List<Object> scopes) |
Code[] |
getCodes() |
String |
getName() |
void |
identity(Writer writer) |
void |
init() |
Node |
invert(Node node,
String text,
AtomicInteger position) |
protected Node |
matchAppended(Node node,
String text,
AtomicInteger position,
int start) |
protected Writer |
run(Writer writer,
List<Object> scopes) |
protected void |
runIdentity(Writer writer) |
void |
setCodes(Code[] newcodes) |
protected void |
tag(Writer writer,
String tag) |
protected String appended
protected Mustache mustache
protected final ObjectHandler oh
protected final String name
protected final TemplateContext tc
protected final String type
protected final boolean returnThis
protected final Binding binding
protected final DefaultMustacheFactory df
public DefaultCode()
public DefaultCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, String name, String type)
public Node invert(Node node, String text, AtomicInteger position)
protected Node matchAppended(Node node, String text, AtomicInteger position, int start)
protected void filterText()
public Writer execute(Writer writer, List<Object> scopes)
protected void runIdentity(Writer writer)
protected void tag(Writer writer, String tag) throws IOException
IOException
Copyright © 2018. All rights reserved.