Package org.boris.xlloop

Examples of org.boris.xlloop.IFunction


        String n = toName(f);
        if (n == null) {
            return;
        }
        try {
            IFunction fn = create(f);
            if (fn != null) {
                System.out.println("Adding script: " + n);
                scripts.put(n, fn);
            } else {
                if (!f.getName().endsWith(".vc")) {
View Full Code Here


        return fs;
    }

    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        IFunction f = (IFunction) scripts.get(name);
        if (f == null) {
            throw new RequestException("#Unknown script: " + name);
        }
        return f.execute(context, args);
    }
View Full Code Here

        FunctionInformation fi = AnnotationHelper.extract(name, xf);
        if (fi != null) {
            name = fi.getName();
            information.put(name, fi);
        }
        IFunction f = (IFunction) methods.get(name);
        if (f instanceof InstanceMethod) {
            OverloadedMethod om = new OverloadedMethod();
            om.add((InstanceMethod) f);
            om.add(new InstanceMethod(c, instance, m, converter));
            methods.put(name, om);
View Full Code Here

            }
        }
    }

    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        IFunction f = (IFunction) methods.get(name);
        if (f == null) {
            throw new RequestException("#Unknown method: " + name);
        }
        return f.execute(context, args);
    }
View Full Code Here

            FunctionInformation fi = (FunctionInformation) information.get(key);
            if (fi != null) {
                functions.add(fi);
                continue;
            }
            IFunction f = (IFunction) methods.get(key);
            fi = new FunctionInformation(key);
            if (f instanceof InstanceMethod) {
                try {
                    InstanceMethod im = (InstanceMethod) f;
                    ParameterNameExtractor pne = new ParameterNameExtractor(im.clazz);
View Full Code Here

TOP

Related Classes of org.boris.xlloop.IFunction

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.