Package com.github.mustachejava.util
Class CapturingMustacheVisitor
- java.lang.Object
-
- com.github.mustachejava.DefaultMustacheVisitor
-
- com.github.mustachejava.util.CapturingMustacheVisitor
-
- All Implemented Interfaces:
MustacheVisitor
public class CapturingMustacheVisitor extends DefaultMustacheVisitor
Grab a map of values returned from calls
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCapturingMustacheVisitor.Captured
-
Field Summary
Fields Modifier and Type Field Description private CapturingMustacheVisitor.Capturedcaptured-
Fields inherited from class com.github.mustachejava.DefaultMustacheVisitor
df, list, logger
-
-
Constructor Summary
Constructors Constructor Description CapturingMustacheVisitor(DefaultMustacheFactory cf, CapturingMustacheVisitor.Captured captured)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiditerable(TemplateContext tc, java.lang.String variable, Mustache mustache)voidnotIterable(TemplateContext tc, java.lang.String variable, Mustache mustache)voidvalue(TemplateContext tc, java.lang.String variable, boolean encoded)
-
-
-
Field Detail
-
captured
private final CapturingMustacheVisitor.Captured captured
-
-
Constructor Detail
-
CapturingMustacheVisitor
public CapturingMustacheVisitor(DefaultMustacheFactory cf, CapturingMustacheVisitor.Captured captured)
-
-
Method Detail
-
value
public void value(TemplateContext tc, java.lang.String variable, boolean encoded)
- Specified by:
valuein interfaceMustacheVisitor- Overrides:
valuein classDefaultMustacheVisitor
-
iterable
public void iterable(TemplateContext tc, java.lang.String variable, Mustache mustache)
- Specified by:
iterablein interfaceMustacheVisitor- Overrides:
iterablein classDefaultMustacheVisitor
-
notIterable
public void notIterable(TemplateContext tc, java.lang.String variable, Mustache mustache)
- Specified by:
notIterablein interfaceMustacheVisitor- Overrides:
notIterablein classDefaultMustacheVisitor
-
-