src/java.xml/share/classes/com/sun/org/apache/xpath/internal/patterns/FunctionPattern.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.
    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.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.QName;
    26 import com.sun.org.apache.xpath.internal.Expression;
    27 import com.sun.org.apache.xpath.internal.Expression;
    27 import com.sun.org.apache.xpath.internal.ExpressionOwner;
    28 import com.sun.org.apache.xpath.internal.ExpressionOwner;
    28 import com.sun.org.apache.xpath.internal.XPathContext;
    29 import com.sun.org.apache.xpath.internal.XPathContext;
    29 import com.sun.org.apache.xpath.internal.XPathVisitor;
    30 import com.sun.org.apache.xpath.internal.XPathVisitor;
    30 import com.sun.org.apache.xpath.internal.objects.XNumber;
    31 import com.sun.org.apache.xpath.internal.objects.XNumber;
    31 import com.sun.org.apache.xpath.internal.objects.XObject;
    32 import com.sun.org.apache.xpath.internal.objects.XObject;
       
    33 import java.util.List;
    32 
    34 
    33 /**
    35 /**
    34  * Match pattern step that contains a function.
    36  * Match pattern step that contains a function.
    35  * @xsl.usage advanced
    37  * @xsl.usage advanced
    36  */
    38  */
    78    * corresponds to the variable reference qname.  The position of the
    80    * corresponds to the variable reference qname.  The position of the
    79    * QName in the vector from the start of the vector will be its position
    81    * QName in the vector from the start of the vector will be its position
    80    * in the stack frame (but variables above the globalsTop value will need
    82    * in the stack frame (but variables above the globalsTop value will need
    81    * to be offset to the current stack frame).
    83    * to be offset to the current stack frame).
    82    */
    84    */
    83   public void fixupVariables(java.util.Vector vars, int globalsSize)
    85   public void fixupVariables(List<QName> vars, int globalsSize)
    84   {
    86   {
    85     super.fixupVariables(vars, globalsSize);
    87     super.fixupVariables(vars, globalsSize);
    86     m_functionExpr.fixupVariables(vars, globalsSize);
    88     m_functionExpr.fixupVariables(vars, globalsSize);
    87   }
    89   }
    88 
    90