All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.watertemplate.interpreter.DeveloperWaterInterpreter Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package org.watertemplate.interpreter;

import org.watertemplate.TemplateMap;
import org.watertemplate.interpreter.exception.TemplateFileNotFoundException;

import java.io.File;
import java.util.Locale;

class DeveloperWaterInterpreter extends WaterInterpreter {
    public DeveloperWaterInterpreter(final String templateFilePath, final Locale defaultLocale) {
        super(templateFilePath, defaultLocale);
    }

    @Override
    public String string(final TemplateMap.Arguments arguments, final Locale locale) {
        return parse(lex(templateFileWith(locale))).string(arguments, locale);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy