src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/PredicatedNodeTest.java
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 47402 fd5d1d2bc1d4
equal deleted inserted replaced
47358:d07d5f7cab35 47359:e1a6c0168741
     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.
    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.DTM;
    24 import com.sun.org.apache.xml.internal.dtm.DTM;
    25 import com.sun.org.apache.xml.internal.dtm.DTMIterator;
    25 import com.sun.org.apache.xml.internal.dtm.DTMIterator;
    26 import com.sun.org.apache.xml.internal.utils.PrefixResolver;
    26 import com.sun.org.apache.xml.internal.utils.PrefixResolver;
       
    27 import com.sun.org.apache.xml.internal.utils.QName;
    27 import com.sun.org.apache.xpath.internal.Expression;
    28 import com.sun.org.apache.xpath.internal.Expression;
    28 import com.sun.org.apache.xpath.internal.ExpressionOwner;
    29 import com.sun.org.apache.xpath.internal.ExpressionOwner;
    29 import com.sun.org.apache.xpath.internal.XPathContext;
    30 import com.sun.org.apache.xpath.internal.XPathContext;
    30 import com.sun.org.apache.xpath.internal.XPathVisitor;
    31 import com.sun.org.apache.xpath.internal.XPathVisitor;
    31 import com.sun.org.apache.xpath.internal.compiler.Compiler;
    32 import com.sun.org.apache.xpath.internal.compiler.Compiler;
    32 import com.sun.org.apache.xpath.internal.objects.XObject;
    33 import com.sun.org.apache.xpath.internal.objects.XObject;
    33 import com.sun.org.apache.xpath.internal.patterns.NodeTest;
    34 import com.sun.org.apache.xpath.internal.patterns.NodeTest;
       
    35 import java.util.List;
    34 
    36 
    35 public abstract class PredicatedNodeTest extends NodeTest implements SubContextList
    37 public abstract class PredicatedNodeTest extends NodeTest implements SubContextList
    36 {
    38 {
    37     static final long serialVersionUID = -6193530757296377351L;
    39     static final long serialVersionUID = -6193530757296377351L;
    38 
    40 
   413    * corresponds to the variable reference qname.  The position of the
   415    * corresponds to the variable reference qname.  The position of the
   414    * QName in the vector from the start of the vector will be its position
   416    * QName in the vector from the start of the vector will be its position
   415    * in the stack frame (but variables above the globalsTop value will need
   417    * in the stack frame (but variables above the globalsTop value will need
   416    * to be offset to the current stack frame).
   418    * to be offset to the current stack frame).
   417    */
   419    */
   418   public void fixupVariables(java.util.Vector vars, int globalsSize)
   420   public void fixupVariables(List<QName> vars, int globalsSize)
   419   {
   421   {
   420     super.fixupVariables(vars, globalsSize);
   422     super.fixupVariables(vars, globalsSize);
   421 
   423 
   422     int nPredicates = getPredicateCount();
   424     int nPredicates = getPredicateCount();
   423 
   425