Examples of SequenceExtent


Examples of net.sf.saxon.value.SequenceExtent

                if (tagname.equals("*") || tagname.equals(next.getDisplayName())) {
                    nodes.add(next);
                }
            }
        }
        return new DOMNodeList(new SequenceExtent(nodes));
    }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

                    (localName.equals("*") || localName.equals(next.getLocalPart()))) {
                    nodes.add(next);
                }
            }
        }
        return new DOMNodeList(new SequenceExtent(nodes));
    }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

                    if (!forwards) {
                        if (children instanceof ReversibleIterator) {
                            children = (AxisIterator)((ReversibleIterator)children).getReverseIterator();
                        } else {
                            try {
                                children = new SequenceExtent(start.iterateAxis(Axis.CHILD)).reverseIterate();
                            } catch (XPathException e) {
                                throw new AssertionError(
                                        "Internal error in Navigator#descendantEnumeration: " + e.getMessage());
                                // shouldn't happen.
                            }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

                return EmptySequence.getInstance();
            case 1:
                Item item = (Item)list.get(0);
                return Value.asValue(item);
            default:
                return new SequenceExtent(list);
        }
    }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

        if (binding==null) {
            throw new IllegalStateException("saxon:assign binding has not been fixed up");
        }
        Value value = getSelectValue(context);
        if (value instanceof Closure) {
            value = new SequenceExtent(value.iterate(null));
        }
        if (binding.isGlobal()) {
            context.getController().getBindery().assignGlobalVariable((GlobalVariable)binding, value);
        } else {
            context.setLocalVariable(binding.getSlotNumber(), value);
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

                    max = x;
                    highest.clear();
                    highest.add(it);
                }
            }
            return new SequenceExtent(highest);
        } catch (NumberFormatException e) {
            return EmptySequence.getInstance();
        }
    }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

                   min = x;
                   lowest.clear();
                   lowest.add(it);
               }
           }
            return new SequenceExtent(lowest);
        } catch (NumberFormatException e) {
            return EmptySequence.getInstance();
        }
    }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

    public DocumentOrderIterator(SequenceIterator base, NodeOrderComparer comparer) throws XPathException {

        this.comparer = comparer;

        sequence = new SequenceExtent(base);
        // System.err.println("sort into document order: sequence length = " + sequence.getLength());
        if (sequence.getLength()>1) {
            QuickSort.sort(this, 0, sequence.getLength()-1);
        }
        iterator = sequence.iterate(null);
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

    public SequenceIterator iterate(XPathContext context) throws XPathException {
        SequenceIterator forwards = operand.iterate(context);
        if (forwards instanceof ReversibleIterator) {
            return ((ReversibleIterator)forwards).getReverseIterator();
        } else {
            SequenceExtent extent = new SequenceExtent(forwards);
            return extent.reverseIterate();
        }
    }
View Full Code Here

Examples of net.sf.saxon.value.SequenceExtent

    */

     public Expression simplify(StaticContext env) throws XPathException {
        operand = operand.simplify(env);
        if (operand instanceof Value) {
            return new SequenceExtent(iterate(null));
        }
        return this;
    }
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.