Package greed.conf.parser

Source Code of greed.conf.parser.TemplateFileParser

package greed.conf.parser;

import greed.util.ResourcePath;
import greed.util.Configuration;

/**
* Greed is good! Cheers!
*/
public class TemplateFileParser extends ExpressionParser<ResourcePath> {
    @Override
    public ResourcePath raw(String templatePath) {
        return new ResourcePath(templatePath, false);
    }

    protected ResourcePath builtin(String templatePath) {
        return new ResourcePath(Configuration.TEMPLATE_PATH + "/" + templatePath, true);
    }

    @Override
    public Class<ResourcePath> typeOf1() {
        return ResourcePath.class;
    }
}
TOP

Related Classes of greed.conf.parser.TemplateFileParser

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.