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. |
19 * limitations under the License. |
19 * limitations under the License. |
20 */ |
20 */ |
21 |
21 |
22 package com.sun.org.apache.xpath.internal.axes; |
22 package com.sun.org.apache.xpath.internal.axes; |
23 |
23 |
24 import java.util.Vector; |
|
25 |
|
26 import com.sun.org.apache.xml.internal.dtm.DTM; |
24 import com.sun.org.apache.xml.internal.dtm.DTM; |
27 import com.sun.org.apache.xml.internal.dtm.DTMFilter; |
25 import com.sun.org.apache.xml.internal.dtm.DTMFilter; |
28 import com.sun.org.apache.xml.internal.dtm.DTMIterator; |
26 import com.sun.org.apache.xml.internal.dtm.DTMIterator; |
29 import com.sun.org.apache.xml.internal.dtm.DTMManager; |
27 import com.sun.org.apache.xml.internal.dtm.DTMManager; |
30 import com.sun.org.apache.xml.internal.utils.NodeVector; |
28 import com.sun.org.apache.xml.internal.utils.NodeVector; |
|
29 import com.sun.org.apache.xml.internal.utils.QName; |
31 import com.sun.org.apache.xpath.internal.NodeSetDTM; |
30 import com.sun.org.apache.xpath.internal.NodeSetDTM; |
32 import com.sun.org.apache.xpath.internal.XPathContext; |
31 import com.sun.org.apache.xpath.internal.XPathContext; |
33 import com.sun.org.apache.xpath.internal.objects.XObject; |
32 import com.sun.org.apache.xpath.internal.objects.XObject; |
|
33 import java.util.List; |
34 |
34 |
35 /** |
35 /** |
36 * This class is the dynamic wrapper for a Xalan DTMIterator instance, and |
36 * This class is the dynamic wrapper for a Xalan DTMIterator instance, and |
37 * provides random access capabilities. |
37 * provides random access capabilities. |
38 */ |
38 */ |
764 vec.insertElementAt(node, insertIndex); |
764 vec.insertElementAt(node, insertIndex); |
765 } |
765 } |
766 |
766 |
767 // checkDups(); |
767 // checkDups(); |
768 return insertIndex; |
768 return insertIndex; |
769 } // end addNodeInDocOrder(Vector v, Object obj) |
769 } // end addNodeInDocOrder(List<QName> v, Object obj) |
770 |
770 |
771 /** |
771 /** |
772 * It used to be that many locations in the code simply |
772 * It used to be that many locations in the code simply |
773 * did an assignment to this.m_obj directly, rather than |
773 * did an assignment to this.m_obj directly, rather than |
774 * calling the setObject(Object) method. The problem is |
774 * calling the setObject(Object) method. The problem is |