src/java.xml/share/classes/com/sun/org/apache/xpath/internal/patterns/UnionPattern.java
changeset 47359 e1a6c0168741
parent 47216 71c04702a3d5
child 48409 5ab69533994b
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.
    19  * limitations under the License.
    19  * limitations under the License.
    20  */
    20  */
    21 
    21 
    22 package com.sun.org.apache.xpath.internal.patterns;
    22 package com.sun.org.apache.xpath.internal.patterns;
    23 
    23 
       
    24 import com.sun.org.apache.xml.internal.utils.QName;
    24 import com.sun.org.apache.xpath.internal.Expression;
    25 import com.sun.org.apache.xpath.internal.Expression;
    25 import com.sun.org.apache.xpath.internal.ExpressionOwner;
    26 import com.sun.org.apache.xpath.internal.ExpressionOwner;
    26 import com.sun.org.apache.xpath.internal.XPathContext;
    27 import com.sun.org.apache.xpath.internal.XPathContext;
    27 import com.sun.org.apache.xpath.internal.XPathVisitor;
    28 import com.sun.org.apache.xpath.internal.XPathVisitor;
    28 import com.sun.org.apache.xpath.internal.objects.XObject;
    29 import com.sun.org.apache.xpath.internal.objects.XObject;
       
    30 import java.util.List;
    29 
    31 
    30 /**
    32 /**
    31  * This class represents a union pattern, which can have multiple individual
    33  * This class represents a union pattern, which can have multiple individual
    32  * StepPattern patterns.
    34  * StepPattern patterns.
    33  * @xsl.usage advanced
    35  * @xsl.usage advanced
    41   private StepPattern[] m_patterns;
    43   private StepPattern[] m_patterns;
    42 
    44 
    43   /**
    45   /**
    44    * No arguments to process, so this does nothing.
    46    * No arguments to process, so this does nothing.
    45    */
    47    */
    46   public void fixupVariables(java.util.Vector vars, int globalsSize)
    48   public void fixupVariables(List<QName> vars, int globalsSize)
    47   {
    49   {
    48     for (int i = 0; i < m_patterns.length; i++)
    50     for (int i = 0; i < m_patterns.length; i++)
    49     {
    51     {
    50       m_patterns[i].fixupVariables(vars, globalsSize);
    52       m_patterns[i].fixupVariables(vars, globalsSize);
    51     }
    53     }