Package org.boris.xlloop.script

Examples of org.boris.xlloop.script.ScriptRepository


import org.boris.xlloop.xloper.XLoper;

public class ScriptRepTest1
{
    public static void main(String[] args) throws Exception {
        ScriptRepository rep = new ScriptRepository(new File(
                "F:\\eclipse\\workspace\\org.boris.functionserver\\functions"), "Script.");

        Thread.sleep(1000);

        XLList a = new XLList();
        a.add(4);
        a.add(4.5);
        XLoper res = rep.execute(null, "Script.sum", a.toArray());
        System.out.println(res);
    }
View Full Code Here


    public static IFunctionHandler createHandler() {
        ReflectFunctionHandler rfh = new ReflectFunctionHandler();
        LispFunctionHandler lfh = new LispFunctionHandler();
        lfh.eval(new File("functions"), true); // evaluate any lisp files
        ScriptRepository srep = new ScriptRepository(new File("functions"), "Script.");
        rfh.addMethods("Math.", Math.class);
        rfh.addMethods("Math.", Maths.class);
        rfh.addMethods("Reflect.", Reflect.class);
        rfh.addMethods("CSV.", CSV.class);
        rfh.addMethods("Test.", Test.class);
View Full Code Here

TOP

Related Classes of org.boris.xlloop.script.ScriptRepository

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.