Package freemarker.core.helpers

Examples of freemarker.core.helpers.NamedParameterListScope


        else {
            outArgs = new TemplateModel[bodyParameterNames.size()];
        }
        final Scope scope = currentScope;
        if (createsNewScope) {
            currentScope = new NamedParameterListScope(scope,
                    bodyParameterNames, Arrays.asList(outArgs), true);
        }
        try {
            directiveModel.execute(this, args, outArgs, nested);
        }
View Full Code Here


        else if(commonSize < paramsSize) {
            // More formal args than actual args -- fill in defaults

            // Create a scope that provides live access to the parameter list
            // so we can reference already defined parameters
            Scope scope = new NamedParameterListScope(env.getCurrentScope(),
                    params, result, false);
                fillInDefaults(env, scope, params.subList(args.size(), params.size()));
        }
        return result;
    }
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
            final Scope scope = new NamedParameterListScope(
                    env.getCurrentScope(), params, result, false);
            fillInDefaults(env, scope, unresolvedParamNames);
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of freemarker.core.helpers.NamedParameterListScope

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.