public class DefaultCode extends java.lang.Object implements Code, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
appended |
protected Binding |
binding |
protected Mustache |
mustache |
protected java.lang.String |
name |
protected ObjectHandler |
oh |
protected boolean |
returnThis |
protected TemplateContext |
tc |
protected java.lang.String |
type |
Constructor and Description |
---|
DefaultCode() |
DefaultCode(TemplateContext tc,
ObjectHandler oh,
Mustache mustache,
java.lang.String name,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object[] |
addScope(java.lang.Object[] scopes,
java.lang.Object scope) |
void |
append(java.lang.String text) |
protected java.io.Writer |
appendText(java.io.Writer writer) |
java.lang.Object |
clone() |
java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object scope) |
java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object[] scopes)
The default behavior is to run the codes and append the captured text.
|
java.lang.Object |
get(java.lang.Object[] scopes) |
Code[] |
getCodes() |
void |
identity(java.io.Writer writer) |
void |
init() |
protected java.io.Writer |
run(java.io.Writer writer,
java.lang.Object[] scopes) |
protected void |
runIdentity(java.io.Writer writer) |
void |
setCodes(Code[] newcodes) |
protected void |
tag(java.io.Writer writer,
java.lang.String tag) |
protected java.lang.String appended
protected Mustache mustache
protected final ObjectHandler oh
protected final java.lang.String name
protected final TemplateContext tc
protected final java.lang.String type
protected final boolean returnThis
protected final Binding binding
public DefaultCode()
public DefaultCode(TemplateContext tc, ObjectHandler oh, Mustache mustache, java.lang.String name, java.lang.String type)
public java.lang.Object clone()
public java.lang.Object get(java.lang.Object[] scopes)
public java.io.Writer execute(java.io.Writer writer, java.lang.Object scope)
public java.io.Writer execute(java.io.Writer writer, java.lang.Object[] scopes)
protected void runIdentity(java.io.Writer writer)
protected void tag(java.io.Writer writer, java.lang.String tag) throws java.io.IOException
java.io.IOException
protected java.io.Writer appendText(java.io.Writer writer)
protected java.io.Writer run(java.io.Writer writer, java.lang.Object[] scopes)
protected java.lang.Object[] addScope(java.lang.Object[] scopes, java.lang.Object scope)
Copyright © 2012. All Rights Reserved.