public class SimpleObjectHandler extends BaseObjectHandler
| Modifier and Type | Class and Description |
|---|---|
private static class |
SimpleObjectHandler.WrapperKey |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<SimpleObjectHandler.WrapperKey,java.lang.reflect.AccessibleObject> |
cache |
private static java.lang.reflect.AccessibleObject |
NONE |
| Constructor and Description |
|---|
SimpleObjectHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
areMethodsAccessible(java.util.Map<?,?> map) |
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.
|
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.
|
private java.lang.reflect.AccessibleObject |
lookup(java.lang.Class sClass,
java.lang.String name) |
checkField, checkMethod, coerce, falsey, findMember, getField, getMethod, iterate, stringifyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeListprivate java.util.Map<SimpleObjectHandler.WrapperKey,java.lang.reflect.AccessibleObject> cache
private static java.lang.reflect.AccessibleObject NONE
public 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 Wrapper find(java.lang.String name, java.util.List<java.lang.Object> scopes)
ObjectHandlername - the variable namescopes - the ordered list of scopesprivate java.lang.reflect.AccessibleObject lookup(java.lang.Class sClass,
java.lang.String name)
protected boolean areMethodsAccessible(java.util.Map<?,?> map)