Class SimpleObjectHandler

    • Field Detail

      • NONE

        private static java.lang.reflect.AccessibleObject NONE
    • Constructor Detail

      • SimpleObjectHandler

        public SimpleObjectHandler()
    • Method Detail

      • createBinding

        public Binding createBinding​(java.lang.String name,
                                     TemplateContext tc,
                                     Code code)
        Description copied from interface: ObjectHandler
        Each call site has its own binding to allow for fine grained caching without a separate parallel hierarchy of objects.
        Specified by:
        createBinding in interface ObjectHandler
        Specified by:
        createBinding in class BaseObjectHandler
        Parameters:
        name - the name that we bound
        tc - the textual context of the binding site
        code - the code that was bound
        Returns:
        the binding
      • find

        public Wrapper find​(java.lang.String name,
                            java.util.List<java.lang.Object> scopes)
        Description copied from interface: ObjectHandler
        Find a value named "name" in the array of scopes in reverse order.
        Parameters:
        name - the variable name
        scopes - the ordered list of scopes
        Returns:
        a wrapper that can be used to extract a value
      • lookup

        private java.lang.reflect.AccessibleObject lookup​(java.lang.Class sClass,
                                                          java.lang.String name)
      • areMethodsAccessible

        protected boolean areMethodsAccessible​(java.util.Map<?,​?> map)