Package webit.script.core

Examples of webit.script.core.VariantIndexer


    }

    public Object execute(final Context context) {
        final Map<String, Object> results = mergeTemplate(context, true);
        if (exportAll) {
            final VariantIndexer destIndexer = context.indexers[context.indexer];
            if (context.indexer == destIndexer.id) {
                final Object[] destValues = context.vars;
                for (Map.Entry<String, Object> entry : results.entrySet()) {
                    int index = destIndexer.getCurrentIndex(entry.getKey());
                    if (index >= 0) {
                        destValues[index] = entry.getValue();
                    }
                }
            }
View Full Code Here


     *
     * @param map
     */
    @SuppressWarnings("unchecked")
    public void exportTo(final Map map) {
        final VariantIndexer varIndexer = indexers[this.indexer];
        final String[] names = varIndexer.names;
        final int[] indexs = varIndexer.indexs;
        final Object[] varsPool = this.vars;
        for (int i = 0, len = names.length; i < len; i++) {
            map.put(names[i], varsPool[indexs[i]]);
View Full Code Here

TOP

Related Classes of webit.script.core.VariantIndexer

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.