com.github.mustachejava.ObjectHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
Implementation of mustache.js for Java
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
© 2015 - 2024 Weber Informatics LLC | Privacy Policy