public class ValueCode extends DefaultCode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
encoded |
protected ExecutorService |
les |
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,
List<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,
List<Object> scopes) |
protected void |
handleFunction(Writer writer,
Function function,
List<Object> scopes) |
void |
identity(Writer writer) |
Node |
invert(Node node,
String text,
AtomicInteger position) |
addScope, append, appendText, clone, clone, filterText, get, getCodes, getName, init, matchAppended, run, runIdentity, setCodes, tagprotected final boolean encoded
protected final ExecutorService les
public 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, List<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, List<Object> scopes) throws Exception
Exceptionprotected void handleFunction(Writer writer, Function function, List<Object> scopes) throws IOException
IOExceptionprotected void execute(Writer writer, String value) throws IOException
IOExceptionpublic Node invert(Node node, String text, AtomicInteger position)
invert in interface Codeinvert in class DefaultCodeCopyright © 2021. All rights reserved.