Package com.github.mustachejava.codes
Class IterableCode
java.lang.Object
com.github.mustachejava.codes.DefaultCode
com.github.mustachejava.codes.IterableCode
- Direct Known Subclasses:
NotIterableCode
-
Field Summary
FieldsFields inherited from class com.github.mustachejava.codes.DefaultCode
appended, binding, df, mustache, name, oh, returnThis, tc, type -
Constructor Summary
ConstructorsConstructorDescriptionIterableCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, String variable) IterableCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, String variable, String type) -
Method Summary
Modifier and TypeMethodDescriptionprotected WriterThe default behavior is to run the codes and append the captured text.protected Writerprotected WriterhandleCallable(Writer writer, Callable callable, List<Object> scopes) protected WriterhandleFunction(Writer writer, Function function, List<Object> scopes) invert(Node node, String text, AtomicInteger position) protected WriterwriteTemplate(Writer writer, String templateText, List<Object> scopes) Methods inherited from class com.github.mustachejava.codes.DefaultCode
addScope, append, appendText, clone, clone, filterText, get, getCodes, getName, identity, init, matchAppended, run, runIdentity, setCodes, tag
-
Field Details
-
les
-
-
Constructor Details
-
IterableCode
public IterableCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, String variable, String type) -
IterableCode
public IterableCode(TemplateContext tc, DefaultMustacheFactory df, Mustache mustache, String variable)
-
-
Method Details
-
execute
Description copied from class:DefaultCodeThe default behavior is to run the codes and append the captured text.- Specified by:
executein interfaceCode- Overrides:
executein classDefaultCode- Parameters:
writer- The writer to write the output toscopes- The scopes to evaluate the embedded names against.
-
handle
-
handleCallable
-
handleFunction
-
writeTemplate
-
execute
-
next
-
invert
- Specified by:
invertin interfaceCode- Overrides:
invertin classDefaultCode
-