public class ValueCode extends DefaultCode
appended, binding, df, mustache, name, oh, returnThis, tc, type| Constructor and Description |
|---|
ValueCode(TemplateContext tc,
DefaultMustacheFactory df,
String variable,
boolean encoded) |
| 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 void |
execute(Writer writer,
String value) |
protected Writer |
handleCallable(Writer writer,
Callable callable,
Object[] scopes) |
protected void |
handleFunction(Writer writer,
com.google.common.base.Function function,
Object[] scopes) |
void |
identity(Writer writer) |
Node |
invert(Node node,
String text,
AtomicInteger position)
If it returns a node, that means that it successfully parsed it
and advanced the reader.
|
addScope, append, appendText, clone, clone, execute, filterText, get, getCodes, init, run, runIdentity, setCodes, tagpublic ValueCode(TemplateContext tc, DefaultMustacheFactory df, String variable, boolean encoded)
public void identity(Writer writer)
identity in interface Codeidentity in class DefaultCodepublic Writer execute(Writer writer, 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 Writer handleCallable(Writer writer, Callable callable, Object[] scopes) throws Exception
Exceptionprotected void handleFunction(Writer writer, com.google.common.base.Function function, Object[] scopes) throws IOException
IOExceptionprotected void execute(Writer writer, String value) throws IOException
IOExceptionpublic Node invert(Node node, String text, AtomicInteger position)
Codeinvert in interface Codeinvert in class DefaultCodeCopyright © 2013. All Rights Reserved.