public class TypeCheckingHandler extends BaseObjectHandler
| Constructor and Description |
|---|
TypeCheckingHandler() |
| Modifier and Type | Method and Description |
|---|---|
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,
List<Object> scopes)
Call Iteration.next() either 0 (true) or 1 (fale) times.
|
Wrapper |
find(String name,
List<Object> scopes)
Find a value named "name" in the array of scopes in reverse order.
|
Writer |
iterate(Iteration iteration,
Writer writer,
Object object,
List<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.
|
checkField, checkMethod, coerce, findMember, getField, getMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeListpublic Wrapper find(String name, List<Object> scopes)
ObjectHandlername - the variable namescopes - the ordered list of scopespublic Binding createBinding(String name, TemplateContext tc, Code code)
ObjectHandlercreateBinding in interface ObjectHandlercreateBinding in class BaseObjectHandlername - the name that we boundtc - the textual context of the binding sitecode - the code that was boundpublic Writer falsey(Iteration iteration, Writer writer, Object object, List<Object> scopes)
ObjectHandlerfalsey in interface ObjectHandlerfalsey in class BaseObjectHandleriteration - callback for the next iterationwriter - the writer to write toobject - the current objectscopes - the scopes presentpublic Writer iterate(Iteration iteration, Writer writer, Object object, List<Object> scopes)
ObjectHandleriterate in interface ObjectHandleriterate in class BaseObjectHandleriteration - callback for the next iterationwriter - the writer to write toobject - the current objectscopes - the scopes presentpublic String stringify(Object object)
ObjectHandlerstringify in interface ObjectHandlerstringify in class BaseObjectHandlerobject - the object to be displayedCopyright © 2018. All rights reserved.