Package net.sf.saxon.expr

Examples of net.sf.saxon.expr.Atomizer


     * Simplify and validate.
     * @param visitor an expression visitor
     */

     public Expression simplify(ExpressionVisitor visitor) throws XPathException {
        Atomizer a = new Atomizer(argument[0]);
        ExpressionTool.copyLocationInfo(this, a);
        return visitor.simplify(a);
    }
View Full Code Here


        context.openStackFrame(stackFrameMap);
        SequenceIterator iterator = expression.iterate(context);
        if (sortKey != null) {
            Expression key = sortKey.expression;
            if (key.getItemType() instanceof NodeTest) {
                key = new Atomizer(key);
            }

            FixedSortKeyDefinition[] sk = new FixedSortKeyDefinition[1];

            sk[0] = new FixedSortKeyDefinition();
View Full Code Here

    /**
    * Simplify and validate.
    */

     public Expression simplify(StaticContext env) throws XPathException {
        Atomizer a = new Atomizer(argument[0]);
        return a.simplify(env);
    }
View Full Code Here

    * Simplify and validate.
     * @param visitor an expression visitor
     */

     public Expression simplify(ExpressionVisitor visitor) throws XPathException {
        Atomizer a = new Atomizer(argument[0], visitor.getConfiguration());
        ExpressionTool.copyLocationInfo(this, a);
        return visitor.simplify(a);
    }
View Full Code Here

    private SequenceIterator rawIterator(XPathContextMajor context) throws XPathException {
        SequenceIterator iterator = expression.iterate(context);
        if (sortKey != null) {
            Expression key = sortKey.expression;
            if (key.getItemType(config.getTypeHierarchy()) instanceof NodeTest) {
                sortKey.expression = new Atomizer(key, config);
            }

            SortKeyDefinition sk = new SortKeyDefinition();
            sk.setSortKey(sortKey.expression);
            AtomicComparer comp = sk.makeComparator(context);
View Full Code Here

                }
                return first.getStringValue();

            } else if (qName.equals(XPathConstants.NUMBER)) {
                if (atomizer == null) {
                    atomizer = new Atomizer(expression, config);
                }
                SequenceIterator iter = atomizer.iterate(context);

                Item first = iter.next();
                if (first == null) {
View Full Code Here

TOP

Related Classes of net.sf.saxon.expr.Atomizer

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.