public class IterableCode extends DefaultCode implements Iteration
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ExecutorService |
les |
appended, binding, df, mustache, name, oh, returnThis, tc, type| Constructor and Description |
|---|
IterableCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
java.lang.String variable) |
IterableCode(TemplateContext tc,
DefaultMustacheFactory df,
Mustache mustache,
java.lang.String variable,
java.lang.String type) |
| 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.
|
protected java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object resolve,
java.util.List<java.lang.Object> scopes) |
protected java.io.Writer |
handle(java.io.Writer writer,
java.lang.Object resolved,
java.util.List<java.lang.Object> scopes) |
protected java.io.Writer |
handleCallable(java.io.Writer writer,
java.util.concurrent.Callable callable,
java.util.List<java.lang.Object> scopes) |
protected java.io.Writer |
handleFunction(java.io.Writer writer,
java.util.function.Function function,
java.util.List<java.lang.Object> scopes) |
Node |
invert(Node node,
java.lang.String text,
java.util.concurrent.atomic.AtomicInteger position) |
java.io.Writer |
next(java.io.Writer writer,
java.lang.Object next,
java.util.List<java.lang.Object> scopes) |
protected java.io.Writer |
writeTemplate(java.io.Writer writer,
java.lang.String templateText,
java.util.List<java.lang.Object> scopes) |
addScope, append, appendText, clone, clone, filterText, get, getCodes, getName, identity, init, matchAppended, run, runIdentity, setCodes, tagpublic IterableCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, java.lang.String variable, java.lang.String type)
public IterableCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, java.lang.String variable)
public java.io.Writer execute(java.io.Writer writer,
java.util.List<java.lang.Object> scopes)
DefaultCodeexecute in interface Codeexecute in class DefaultCodewriter - The writer to write the output toscopes - The scopes to evaluate the embedded names against.protected java.io.Writer handle(java.io.Writer writer,
java.lang.Object resolved,
java.util.List<java.lang.Object> scopes)
protected java.io.Writer handleCallable(java.io.Writer writer,
java.util.concurrent.Callable callable,
java.util.List<java.lang.Object> scopes)
protected java.io.Writer handleFunction(java.io.Writer writer,
java.util.function.Function function,
java.util.List<java.lang.Object> scopes)
protected java.io.Writer writeTemplate(java.io.Writer writer,
java.lang.String templateText,
java.util.List<java.lang.Object> scopes)
protected java.io.Writer execute(java.io.Writer writer,
java.lang.Object resolve,
java.util.List<java.lang.Object> scopes)
public java.io.Writer next(java.io.Writer writer,
java.lang.Object next,
java.util.List<java.lang.Object> scopes)