Uses of Interface
io.jstach.jstachio.context.ContextNode
Packages that use 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.
-
Uses of ContextNode in io.jstach.jstachio.context
Classes in io.jstach.jstachio.context that implement ContextNodeModifier and TypeClassDescriptionclassExtend this class to makeJStachemodel act like JSON object or a java.util.Map.Methods in io.jstach.jstachio.context that return ContextNodeModifier and TypeMethodDescriptionContextSupplier.context()A context node never null but maybe empty.static ContextNodeContextNode.empty()An empty context node that is safe to use identify comparison.@Nullable ContextNodeWill search up the tree for a field starting at this nodes children first.final @Nullable ContextNode@Nullable ContextNodeGets a field from a ContextNode.final @Nullable ContextNodestatic ContextNodeCreates a root context node with the given function to look up children.static ContextNodeCreates the root node from an Object.default @Nullable ContextNodeContextNode.parent()The parent node.final @Nullable ContextNodeObjectContext.parent()static ContextNodeResolves the context node from an object.static ContextNodeResolves the context node trying first and then second.Methods in io.jstach.jstachio.context that return types with arguments of type ContextNodeModifier 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()Methods in io.jstach.jstachio.context with parameters of type ContextNodeModifier 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 booleanContextNode.isFalsey(@Nullable ContextNode context) Determines if the node is falsey based on mustache spec semantics where:null, empty iterables, empty arrays and booleanfalseare 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
Methods in io.jstach.jstachio.spi with parameters of type ContextNodeModifier 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)