src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/WalkingIteratorSorted.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * reserved comment block |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT REMOVE OR ALTER! |
3 * @LastModified: Oct 2017 |
4 */ |
4 */ |
5 /* |
5 /* |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
8 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
21 |
21 |
22 package com.sun.org.apache.xpath.internal.axes; |
22 package com.sun.org.apache.xpath.internal.axes; |
23 |
23 |
24 import com.sun.org.apache.xml.internal.dtm.Axis; |
24 import com.sun.org.apache.xml.internal.dtm.Axis; |
25 import com.sun.org.apache.xml.internal.utils.PrefixResolver; |
25 import com.sun.org.apache.xml.internal.utils.PrefixResolver; |
|
26 import com.sun.org.apache.xml.internal.utils.QName; |
26 import com.sun.org.apache.xpath.internal.compiler.Compiler; |
27 import com.sun.org.apache.xpath.internal.compiler.Compiler; |
|
28 import java.util.List; |
27 |
29 |
28 /** |
30 /** |
29 * This class iterates over set of nodes that needs to be sorted. |
31 * This class iterates over set of nodes that needs to be sorted. |
30 * @xsl.usage internal |
32 * @xsl.usage internal |
31 */ |
33 */ |
192 * corresponds to the variable reference qname. The position of the |
194 * corresponds to the variable reference qname. The position of the |
193 * QName in the vector from the start of the vector will be its position |
195 * QName in the vector from the start of the vector will be its position |
194 * in the stack frame (but variables above the globalsTop value will need |
196 * in the stack frame (but variables above the globalsTop value will need |
195 * to be offset to the current stack frame). |
197 * to be offset to the current stack frame). |
196 */ |
198 */ |
197 public void fixupVariables(java.util.Vector vars, int globalsSize) |
199 public void fixupVariables(List<QName> vars, int globalsSize) |
198 { |
200 { |
199 super.fixupVariables(vars, globalsSize); |
201 super.fixupVariables(vars, globalsSize); |
200 |
202 |
201 int analysis = getAnalysisBits(); |
203 int analysis = getAnalysisBits(); |
202 if(WalkerFactory.isNaturalDocOrder(analysis)) |
204 if(WalkerFactory.isNaturalDocOrder(analysis)) |