Package xbird.xquery.func.ext

Examples of xbird.xquery.func.ext.JavaFunction


    }

    public Function lookupFunction(QualifiedName funcName, List<? extends XQExpression> params) {
        // step1-1. bind java function.
        if(funcName.getNamespaceURI().startsWith(JavaFunction.PROTOCOL)) {
            JavaFunction func = new JavaFunction(funcName);
            return func;
        }
        // step1-2. pre-defined functions lookup.
        final int arity = params.size();
        if(!XQueryConstants.LOCAL_URI.equals(funcName.getNamespaceURI())) {
            BuiltInFunction func = PredefinedFunctions.lookup(funcName);
            if(func != null) {
                FunctionSignature[] sigs = func.getFunctionSignatures();
                for(int i = 0; i < sigs.length; i++) {
                    if(sigs[i].getArity() == arity) {
                        return func;
                    }
                }
View Full Code Here

TOP

Related Classes of xbird.xquery.func.ext.JavaFunction

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.