Examples of CollectionAndSequence


Examples of freemarker.core.ast.CollectionAndSequence

        return wrapper.keyCount(object.getClass());
    }

    public TemplateCollectionModel keys()
    {
        return new CollectionAndSequence(new SimpleSequence(keySet(), wrapper));
    }
View Full Code Here

Examples of freemarker.core.ast.CollectionAndSequence

        TemplateModelIterator it = keys().iterator();
        while (it.hasNext()) {
            String key = ((TemplateScalarModel)it.next()).getAsString();
            values.add(get(key));
        }
        return new CollectionAndSequence(new SimpleSequence(values, wrapper));
    }
View Full Code Here

Examples of freemarker.core.ast.CollectionAndSequence

            throw TemplateNode.invalidTypeException(model,
                    caller.getTarget(), env, "extended hash");
        }
        final TemplateCollectionModel result = apply((TemplateHashModelEx) model);
        if (!(result instanceof TemplateSequenceModel)) {
            return new CollectionAndSequence(result);
        }
        return result;
    }
View Full Code Here
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.