public class ValueCode extends DefaultCode
| Modifier and Type | Field and Description |
|---|---|
private java.util.regex.Pattern |
compiledAppended |
private boolean |
encoded |
private java.util.concurrent.ExecutorService |
les |
appended, binding, df, mustache, name, oh, returnThis, tc, type| Constructor and Description |
|---|
ValueCode(TemplateContext tc,
DefaultMustacheFactory df,
java.lang.String variable,
boolean encoded) |
| Modifier and Type | Method and Description |
|---|---|
private void |
execute(java.io.Writer writer,
java.util.concurrent.Callable callable) |
java.io.Writer |
execute(java.io.Writer writer,
java.util.List<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.util.List<java.lang.Object> scopes) |
protected void |
handleFunction(java.io.Writer writer,
java.util.function.Function function,
java.util.List<java.lang.Object> scopes) |
void |
identity(java.io.Writer writer) |
Node |
invert(Node node,
java.lang.String text,
java.util.concurrent.atomic.AtomicInteger position) |
addScope, append, appendText, clone, clone, filterText, get, getCodes, getName, init, matchAppended, run, runIdentity, setCodes, tagprivate final boolean encoded
private final java.util.concurrent.ExecutorService les
private java.util.regex.Pattern compiledAppended
public ValueCode(TemplateContext tc, DefaultMustacheFactory df, 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.util.List<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.util.List<java.lang.Object> scopes)
throws java.lang.Exception
java.lang.Exceptionprivate void execute(java.io.Writer writer,
java.util.concurrent.Callable callable)
throws java.lang.Exception
java.lang.Exceptionprotected void handleFunction(java.io.Writer writer,
java.util.function.Function function,
java.util.List<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.IOException