public class IterableCode extends DefaultCode implements Iteration
appended, binding, mustache, name, oh, returnThis, tc, type
Constructor and Description |
---|
IterableCode(TemplateContext tc,
DefaultMustacheFactory cf,
Mustache mustache,
String variable) |
Modifier and Type | Method and Description |
---|---|
Writer |
execute(Writer writer,
Object[] scopes)
The default behavior is to run the codes and append the captured text.
|
protected Writer |
execute(Writer writer,
Object resolve,
Object[] scopes) |
protected Writer |
handleCallable(Writer writer,
Callable callable,
Object[] scopes) |
protected Writer |
handleFunction(Writer writer,
com.google.common.base.Function function,
Object[] scopes) |
Writer |
next(Writer writer,
Object next,
Object... scopes) |
protected Writer |
writeTemplate(Writer writer,
String templateText,
Object[] scopes) |
addScope, append, appendText, clone, execute, get, getCodes, identity, init, run, runIdentity, setCodes, tag
public IterableCode(TemplateContext tc, DefaultMustacheFactory cf, Mustache mustache, String variable)
public Writer execute(Writer writer, Object[] scopes)
DefaultCode
execute
in interface Code
execute
in class DefaultCode
writer
- The writer to write the output toscopes
- The scopes to evaluate the embedded names against.protected Writer handleFunction(Writer writer, com.google.common.base.Function function, Object[] scopes)
Copyright © 2012. All Rights Reserved.