Package freemarker.core.parser

Examples of freemarker.core.parser.FMParser


                new StringReader("(" + s + ")"), caller.getBeginLine(),
                caller.getBeginColumn(), s.length() + 2);
        //        FMLexer token_source = new FMLexer(scs);
        FMLexer token_source = new FMLexer(scs);
        token_source.SwitchTo(FMConstants.EXPRESSION);
        FMParser parser = new FMParser(token_source);
        parser.setTemplate(caller.getTemplate());
        Expression exp = null;
        try {
            exp = parser.Exp();
        } catch (ParseException pe) {
            pe.setTemplateName(caller.getTemplate().getName());
            throw new TemplateException(pe, env);
        }
        return exp.getAsTemplateModel(env);
View Full Code Here

TOP

Related Classes of freemarker.core.parser.FMParser

Copyright © 2018 www.massapicom. 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.