public interface ObjectHandler
| Modifier and Type | Method and Description |
|---|---|
Object |
coerce(Object object)
Coerce results to Java native iterables, functions, callables.
|
Binding |
createBinding(String name,
TemplateContext tc,
Code code)
Each call site has its own binding to allow for fine grained caching without
a separate parallel hierarchy of objects.
|
Writer |
falsey(Iteration iteration,
Writer writer,
Object object,
Object[] scopes)
Call Iteration.next() either 0 (true) or 1 (fale) times.
|
Wrapper |
find(String name,
Object[] scopes)
Find a value named "name" in the array of scopes in reverse order.
|
Writer |
iterate(Iteration iteration,
Writer writer,
Object object,
Object[] scopes)
Iterate over an object by calling Iteration.next for each value.
|
String |
stringify(Object object)
Turns an object into the string representation that should be displayed
in templates.
|
Wrapper find(String name, Object[] scopes)
name - scopes - Object coerce(Object object)
object - Writer iterate(Iteration iteration, Writer writer, Object object, Object[] scopes)
iteration - writer - object - scopes - Writer falsey(Iteration iteration, Writer writer, Object object, Object[] scopes)
iteration - writer - object - scopes - Binding createBinding(String name, TemplateContext tc, Code code)
name - tc - code - Copyright © 2014. All rights reserved.