Package org.boris.xlloop

Source Code of org.boris.xlloop.ExecuteHandler

package org.boris.xlloop;

import org.boris.xlloop.util.XLMap;
import org.boris.xlloop.xloper.XLoper;

public class ExecuteHandler implements IFunctionHandler
{
    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        System.out.println(name + args);

        if (args.length > 0) {
            return args[0];
        }

        XLMap s = new XLMap();
        s.add("hello there", 123213);
        s.add("asdf", "woeiruewoir");
        return s.toXloper();
    }

    public boolean hasFunction(String name) {
        return true;
    }
}
TOP

Related Classes of org.boris.xlloop.ExecuteHandler

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.