Package freemarker.core.helpers

Examples of freemarker.core.helpers.NamedParameterMapScope


            result.put(params.get(i), args.getValueAt(i, env));
        }
        if(hasDefaultExpressions() && argsSize < paramsSize) {
            // Create a scope that provides live access to the parameter list
            // so we can reference already defined parameters
            Scope scope = new NamedParameterMapScope(env.getCurrentScope(),
                    result);
            fillInDefaults(env, scope, params.subList(argsSize, paramsSize));
        }
        if(catchall != null) {
            SimpleSequence catchAllVars = new SimpleSequence();
View Full Code Here


            }
        }
        if(unresolvedParamNames != null) {
            // Create a scope that provides live access to the parameter list
            // so we can reference already defined parameters
            Scope scope = new NamedParameterMapScope(env.getCurrentScope(),
                    result);
            fillInDefaults(env, scope, unresolvedParamNames);
        }
        SimpleHash catchAllMap = null;
        if (catchall != null) {
View Full Code Here

    {
        Map<String, TemplateModel> result = new HashMap<String, TemplateModel>();
        if(hasDefaultExpressions()) {
            // Create a scope that provides live access to the parameter list
            // so we can reference already defined parameters
            Scope scope = new NamedParameterMapScope(env.getCurrentScope(),
                    result);
            fillInDefaults(env, scope, defaults.keySet());
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of freemarker.core.helpers.NamedParameterMapScope

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.