Uses of Interface
io.jstach.jstachio.context.ContextNode
Package
Description
JStachio extended Mustache context support for context stack as well as Map and JSON
tree like models.
JStachio Service Provider extension points API.
We statically configure all annotated JStache in this package to follow the builtin
dropwizard config.
Spring Boot MVC components using JStachio.
Spring Boot MVC components using JStachio.
Spring Boot WebFlux example Hello endpoint using JStachio.
Spring Boot MVC components using JStachio.
-
Uses of ContextNode in io.jstach.jstachio.context
Modifier and TypeClassDescriptionclass
Extend this class to makeJStache
model act like JSON object or a java.util.Map.Modifier and TypeMethodDescriptionContextSupplier.context()
A context node never null but maybe empty.static ContextNode
ContextNode.empty()
An empty context node that is safe to use identify comparison.@Nullable ContextNode
Will search up the tree for a field starting at this nodes children first.final @Nullable ContextNode
@Nullable ContextNode
Gets a field from a ContextNode.final @Nullable ContextNode
static ContextNode
Creates a root context node with the given function to look up children.static ContextNode
Creates the root node from an Object.default @Nullable ContextNode
ContextNode.parent()
The parent node.final @Nullable ContextNode
ObjectContext.parent()
static ContextNode
Resolves the context node from an object.static ContextNode
Resolves the context node trying first and then second.Modifier and TypeMethodDescriptionIterator<@Nullable ContextNode>
ContextNode.iterator()
If the node is a Map or a non iterable/array a singleton iterator will be returned.final Iterator<@Nullable ContextNode>
ObjectContext.iterator()
Modifier and TypeMethodDescriptionContextJStachio.execute
(Object model, ContextNode context, A appendable) Renders the passed in model with a context.ContextTemplate.execute
(T model, ContextNode context, A appendable) Renders the passed in model to an appendable like output.static boolean
ContextNode.isFalsey
(@Nullable ContextNode context) Determines if the node is falsey based on mustache spec semantics where:null
, empty iterables, empty arrays and booleanfalse
are falsey however empty Map is not falsey butempty()
is always falsey.<A extends Output.EncodedOutput<E>,
E extends Exception>
AContextJStachio.write
(Object model, ContextNode context, A output) Renders the passed in model with a context directly to a binary stream leveraging pre-encoded parts of the template.<A extends Output.EncodedOutput<E>,
E extends Exception>
AContextTemplate.write
(T model, ContextNode context, A output) Renders the passed in model directly to a binary stream leveraging pre-encoded parts of the template. -
Uses of ContextNode in io.jstach.jstachio.spi
Modifier and TypeMethodDescriptionAbstractJStachio.execute
(Object model, ContextNode context, A appendable) final <A extends Output.EncodedOutput<E>,
E extends Exception>
AAbstractJStachio.write
(Object model, ContextNode context, A output) -
Uses of ContextNode in io.jstach.opt.dropwizard.example
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidExampleModelRenderer.encode
(ExampleModelRenderer template, ExampleModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.ExampleModelRenderer.execute
(ExampleModel model, ContextNode context, A a) ExampleModelRenderer.render
(ExampleModelRenderer template, ExampleModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AExampleModelRenderer.write
(ExampleModel model, ContextNode context, A outputStream) -
Uses of ContextNode in io.jstach.opt.spring.example.hello
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelAndViewView.encode
(HelloModelAndViewView template, HelloModelAndView data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.protected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.HelloModelAndViewView.execute
(HelloModelAndView model, ContextNode context, A a) HelloModelView.execute
(HelloModel model, ContextNode context, A a) HelloModelAndViewView.render
(HelloModelAndViewView template, HelloModelAndView data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.HelloModelView.render
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelAndViewView.write
(HelloModelAndView model, ContextNode context, A outputStream) <A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, ContextNode context, A outputStream) -
Uses of ContextNode in io.jstach.opt.spring.example.message
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidMessagePageRenderer.encode
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.MessagePageRenderer.execute
(MessagePage model, ContextNode context, A a) MessagePageRenderer.render
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AMessagePageRenderer.write
(MessagePage model, ContextNode context, A outputStream) -
Uses of ContextNode in io.jstach.opt.spring.webflux.example.hello
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidHelloModelView.encode
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.HelloModelView.execute
(HelloModel model, ContextNode context, A a) HelloModelView.render
(HelloModelView template, HelloModel data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AHelloModelView.write
(HelloModel model, ContextNode context, A outputStream) -
Uses of ContextNode in io.jstach.opt.spring.webflux.example.message
Modifier and TypeMethodDescriptionprotected static <A extends Output.EncodedOutput<E>,
E extends Exception>
voidMessagePageRenderer.encode
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Escaper escaper, Appender appender) Renders to an OutputStream use pre-encoded parts of the template.MessagePageRenderer.execute
(MessagePage model, ContextNode context, A a) MessagePageRenderer.render
(MessagePageRenderer template, MessagePage data, ContextNode context, A unescapedWriter, Formatter formatter, Appender escaper, Appender appender) Renders the passed in model.<A extends Output.EncodedOutput<E>,
E extends Exception>
AMessagePageRenderer.write
(MessagePage model, ContextNode context, A outputStream)