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, tag
protected 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 Code
identity
in class DefaultCode
public Writer execute(Writer writer, List<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 Writer handleCallable(Writer writer, Callable callable, List<Object> scopes) throws Exception
Exception
protected void handleFunction(Writer writer, Function function, List<Object> scopes) throws IOException
IOException
protected void execute(Writer writer, String value) throws IOException
IOException
public Node invert(Node node, String text, AtomicInteger position)
invert
in interface Code
invert
in class DefaultCode
Copyright © 2023. All rights reserved.