public class IterableCode extends DefaultCode implements Iteration
appended, debug, logger, mustache, name, oh, returnThis, tc, type
Constructor and Description |
---|
IterableCode(TemplateContext tc,
DefaultMustacheFactory cf,
Mustache mustache,
java.lang.String variable) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected java.io.Writer |
execute(java.io.Writer writer,
java.lang.Object resolve,
java.lang.Object[] scopes) |
protected java.io.Writer |
handleCallable(java.io.Writer writer,
java.util.concurrent.Callable callable,
java.lang.Object[] scopes) |
protected java.io.Writer |
handleFunction(java.io.Writer writer,
com.google.common.base.Function function,
java.lang.Object[] scopes) |
java.io.Writer |
next(java.io.Writer writer,
java.lang.Object next,
java.lang.Object... scopes) |
protected java.io.Writer |
writeTemplate(java.io.Writer writer,
java.lang.String templateText,
java.lang.Object[] scopes) |
addScope, append, appendText, clone, execute, get, getCodes, getWrapper, identity, init, runCodes, runIdentity, setCodes
public IterableCode(TemplateContext tc, DefaultMustacheFactory cf, Mustache mustache, java.lang.String variable)
public java.io.Writer execute(java.io.Writer writer, java.lang.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 java.io.Writer handleCallable(java.io.Writer writer, java.util.concurrent.Callable callable, java.lang.Object[] scopes)
protected java.io.Writer handleFunction(java.io.Writer writer, com.google.common.base.Function function, java.lang.Object[] scopes)
protected java.io.Writer writeTemplate(java.io.Writer writer, java.lang.String templateText, java.lang.Object[] scopes)
protected java.io.Writer execute(java.io.Writer writer, java.lang.Object resolve, java.lang.Object[] scopes)
Copyright © 2012. All Rights Reserved.