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, setCodes
public ValueCode(TemplateContext tc, DefaultMustacheFactory cf, java.lang.String variable, boolean encoded)
public void identity(java.io.Writer writer)
identity
in interface Code
identity
in class DefaultCode
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) throws java.lang.Exception
java.lang.Exception
protected void handleFunction(java.io.Writer writer, com.google.common.base.Function function, java.lang.Object[] scopes) throws java.io.IOException
java.io.IOException
protected void execute(java.io.Writer writer, java.lang.String value) throws java.io.IOException
java.io.IOException
Copyright © 2012. All Rights Reserved.