io.honeybadger.com.github.mustachejava.ObjectHandler Maven / Gradle / Ivy
package com.github.mustachejava;
import com.github.mustachejava.util.InternalArrayList;
import com.github.mustachejava.util.Wrapper;
import java.io.Writer;
import java.util.List;
/**
* The ObjectHandler is responsible for creating wrappers to find values
* in scopes at runtime and to coerce those results to the appropriate Java types
*/
public interface ObjectHandler {
/**
* Find a value named "name" in the array of scopes in reverse order.
*
* @param name the variable name
* @param scopes the ordered list of scopes
* @return a wrapper that can be used to extract a value
*/
Wrapper find(String name, List