public class ValueCode extends DefaultCode
appended, debug, logger, mustache, name, oh, returnThis, tc, type| Constructor and Description |
|---|
ValueCode(TemplateContext tc,
DefaultMustacheFactory cf,
java.lang.String variable,
boolean encoded) |
| 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 void |
execute(java.io.Writer writer,
java.lang.String value) |
protected java.io.Writer |
handleCallable(java.io.Writer writer,
java.util.concurrent.Callable callable,
java.lang.Object[] scopes) |
protected void |
handleFunction(java.io.Writer writer,
com.google.common.base.Function function,
java.lang.Object[] scopes) |
void |
identity(java.io.Writer writer) |
addScope, append, appendText, clone, execute, get, getCodes, getWrapper, init, runCodes, runIdentity, setCodespublic ValueCode(TemplateContext tc, DefaultMustacheFactory cf, java.lang.String variable, boolean encoded)
public void identity(java.io.Writer writer)
identity in interface Codeidentity in class DefaultCodepublic java.io.Writer execute(java.io.Writer writer,
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 handleCallable(java.io.Writer writer,
java.util.concurrent.Callable callable,
java.lang.Object[] scopes)
throws java.lang.Exception
java.lang.Exceptionprotected void handleFunction(java.io.Writer writer,
com.google.common.base.Function function,
java.lang.Object[] scopes)
throws java.io.IOException
java.io.IOExceptionprotected void execute(java.io.Writer writer,
java.lang.String value)
throws java.io.IOException
java.io.IOExceptionCopyright © 2012. All Rights Reserved.