Package xbird.xquery.func

Examples of xbird.xquery.func.Function.staticAnalysis()


        params.add(p1);
        // function
        QualifiedName fname = QNameTable.instantiate("java:java.lang.Math", "sqrt");
        Function f = new FunctionManager().lookupFunction(fname, params);
        assertNotNull(f);
        f.staticAnalysis(null, params);

        // invoke binded java method.
        Method bindedMethod = (Method) PrivilegedAccessor.getValue(f, "bindedMethod");
        System.out.println("java.lang.Math.sqrt(4.0) = "
                + bindedMethod.invoke(bindedMethod, new Double(4)));
View Full Code Here

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.