Class TemplateResolvers.MapResolver<V>

    • Method Detail

      • isResolvable

        public boolean isResolvable()
        Description copied from interface: TemplateResolver
        Indicates if the resolver if applicable at all.

        For instance, the source line resolver can be short-circuited using this check if the location information is disabled in the layout configuration.

        Specified by:
        isResolvable in interface TemplateResolver<V>
      • isResolvable

        public boolean isResolvable​(V value)
        The parent resolver checking if each child is resolvable given the passed value. This is an optimization to skip the rendering of a parent if all its children are not resolvable for the given value.
        Specified by:
        isResolvable in interface TemplateResolver<V>
      • resolve

        public void resolve​(V value,
                            JsonWriter jsonWriter)
        The parent resolver combining all child resolver executions.
        Specified by:
        resolve in interface TemplateResolver<V>