public interface ObjectHandler
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
coerce(java.lang.Object object)
Coerce results to Java native iterables, functions, callables.
|
Binding |
createBinding(java.lang.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.
|
java.io.Writer |
falsey(Iteration iteration,
java.io.Writer writer,
java.lang.Object object,
java.lang.Object[] scopes)
Call Iteration.next() either 0 (true) or 1 (fale) times.
|
Wrapper |
find(java.lang.String name,
java.lang.Object[] scopes)
Find a value named "name" in the array of scopes in reverse order.
|
java.io.Writer |
iterate(Iteration iteration,
java.io.Writer writer,
java.lang.Object object,
java.lang.Object[] scopes)
Iterate over an object by calling Iteration.next for each value.
|
java.lang.String |
stringify(java.lang.Object object)
Turns an object into the string representation that should be displayed
in templates.
|
Wrapper find(java.lang.String name, java.lang.Object[] scopes)
name
- scopes
- java.lang.Object coerce(java.lang.Object object)
object
- java.io.Writer iterate(Iteration iteration, java.io.Writer writer, java.lang.Object object, java.lang.Object[] scopes)
iteration
- writer
- object
- scopes
- java.io.Writer falsey(Iteration iteration, java.io.Writer writer, java.lang.Object object, java.lang.Object[] scopes)
iteration
- writer
- object
- scopes
- Binding createBinding(java.lang.String name, TemplateContext tc, Code code)
name
- tc
- code
- java.lang.String stringify(java.lang.Object object)
object
- the object to be displayedCopyright © 2012. All Rights Reserved.