public class TypeCheckingHandler extends BaseObjectHandler
| Constructor and Description |
|---|
TypeCheckingHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.util.List<java.lang.Object> scopes)
Call Iteration.next() either 0 (true) or 1 (fale) times.
|
Wrapper |
find(java.lang.String name,
java.util.List<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.util.List<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.
|
checkField, checkMethod, coerce, findMember, getField, getMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeListpublic Wrapper find(java.lang.String name, java.util.List<java.lang.Object> scopes)
ObjectHandlername - the variable namescopes - the ordered list of scopespublic Binding createBinding(java.lang.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 java.io.Writer falsey(Iteration iteration, java.io.Writer writer, java.lang.Object object, java.util.List<java.lang.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 java.io.Writer iterate(Iteration iteration, java.io.Writer writer, java.lang.Object object, java.util.List<java.lang.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 java.lang.String stringify(java.lang.Object object)
ObjectHandlerstringify in interface ObjectHandlerstringify in class BaseObjectHandlerobject - the object to be displayed