Package com.github.mustachejava.reflect
Class SimpleObjectHandler
java.lang.Object
com.github.mustachejava.reflect.BaseObjectHandler
com.github.mustachejava.reflect.SimpleObjectHandler
- All Implemented Interfaces:
ObjectHandler
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareMethodsAccessible(Map<?, ?> map) 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.Find a value named "name" in the array of scopes in reverse order.private AccessibleObjectMethods inherited from class com.github.mustachejava.reflect.BaseObjectHandler
checkClass, checkField, checkMethod, coerce, falsey, findMember, getField, getMethod, iterate, stringify
-
Field Details
-
cache
-
NONE
-
-
Constructor Details
-
SimpleObjectHandler
public SimpleObjectHandler()
-
-
Method Details
-
createBinding
Description copied from interface:ObjectHandlerEach call site has its own binding to allow for fine grained caching without a separate parallel hierarchy of objects.- Specified by:
createBindingin interfaceObjectHandler- Specified by:
createBindingin classBaseObjectHandler- Parameters:
name- the name that we boundtc- the textual context of the binding sitecode- the code that was bound- Returns:
- the binding
-
find
Description copied from interface:ObjectHandlerFind a value named "name" in the array of scopes in reverse order.- Parameters:
name- the variable namescopes- the ordered list of scopes- Returns:
- a wrapper that can be used to extract a value
-
lookup
-
areMethodsAccessible
-