< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/WalkingIterator.java

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xpath.internal.axes;
  23 
  24 import com.sun.org.apache.xml.internal.dtm.DTM;
  25 import com.sun.org.apache.xml.internal.utils.PrefixResolver;
  26 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.ExpressionOwner;
  29 import com.sun.org.apache.xpath.internal.VariableStack;
  30 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.OpMap;
  33 import java.util.List;
  34 
  35 /**
  36  * Location path iterator that uses Walkers.


  37  */
  38 
  39 public class WalkingIterator extends LocPathIterator implements ExpressionOwner
  40 {
  41     static final long serialVersionUID = 9110225941815665906L;
  42   /**
  43    * Create a WalkingIterator iterator, including creation
  44    * of step walkers from the opcode list, and call back
  45    * into the Compiler to create predicate expressions.
  46    *
  47    * @param compiler The Compiler which is creating
  48    * this expression.
  49    * @param opPos The position of this iterator in the
  50    * opcode list from the compiler.
  51    * @param shouldLoadWalkers True if walkers should be
  52    * loaded, or false if this is a derived iterator and
  53    * it doesn't wish to load child walkers.
  54    *
  55    * @throws javax.xml.transform.TransformerException
  56    */


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xpath.internal.axes;
  22 
  23 import com.sun.org.apache.xml.internal.dtm.DTM;
  24 import com.sun.org.apache.xml.internal.utils.PrefixResolver;
  25 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.ExpressionOwner;
  28 import com.sun.org.apache.xpath.internal.VariableStack;
  29 import com.sun.org.apache.xpath.internal.XPathVisitor;
  30 import com.sun.org.apache.xpath.internal.compiler.Compiler;
  31 import com.sun.org.apache.xpath.internal.compiler.OpMap;
  32 import java.util.List;
  33 
  34 /**
  35  * Location path iterator that uses Walkers.
  36  *
  37  * @LastModified: Oct 2017
  38  */
  39 
  40 public class WalkingIterator extends LocPathIterator implements ExpressionOwner
  41 {
  42     static final long serialVersionUID = 9110225941815665906L;
  43   /**
  44    * Create a WalkingIterator iterator, including creation
  45    * of step walkers from the opcode list, and call back
  46    * into the Compiler to create predicate expressions.
  47    *
  48    * @param compiler The Compiler which is creating
  49    * this expression.
  50    * @param opPos The position of this iterator in the
  51    * opcode list from the compiler.
  52    * @param shouldLoadWalkers True if walkers should be
  53    * loaded, or false if this is a derived iterator and
  54    * it doesn't wish to load child walkers.
  55    *
  56    * @throws javax.xml.transform.TransformerException
  57    */


< prev index next >