Package net.sf.saxon.om

Examples of net.sf.saxon.om.FunctionItem


     * @throws net.sf.saxon.trans.XPathException
     *          if a dynamic error occurs during evaluation of the function.
     */

    public Item evaluateItem(XPathContext context) throws XPathException {
        FunctionItem f = (FunctionItem)getArguments()[0].evaluateItem(context);
        ValueRepresentation val = SequenceExtent.makeSequenceExtent(
                getArguments()[1].iterate(context));
        int arg = 1;
        if (getNumberOfArguments() == 3) {
            arg = (int)((IntegerValue)getArguments()[2].evaluateItem(context)).longValue();
        }
        try {
            return f.curry(arg, val);
        } catch (XPathException e) {
            e.maybeSetLocation(this);
            e.maybeSetContext(context);
            throw e;
        }
View Full Code Here


     * @throws net.sf.saxon.trans.XPathException
     *          if a dynamic error occurs during evaluation of the function.
     */

    public Item evaluateItem(XPathContext context) throws XPathException {
        FunctionItem f = (FunctionItem)getArguments()[0].evaluateItem(context);
        StructuredQName name = f.getFunctionName();
        if (name == null) {
            return null;
        } else {
            return new QNameValue(name, BuiltInAtomicType.QNAME);
        }
View Full Code Here

     * @throws net.sf.saxon.trans.XPathException
     *          if a dynamic error occurs during evaluation of the function.
     */

    public Item evaluateItem(XPathContext context) throws XPathException {
        FunctionItem f = (FunctionItem)getArguments()[0].evaluateItem(context);
        return Int64Value.makeIntegerValue(f.getArity());
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.om.FunctionItem

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.