ChildIterator.java revision 286
286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 1999-2004 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * This class implements an optimized iterator for 286N/A * "node()" patterns, that is, any children of the 286N/A * @see com.sun.org.apache.xpath.internal.axes.LocPathIterator 286N/A * Create a ChildIterator object. 286N/A * @param compiler A reference to the Compiler that contains the op map. 286N/A * @param opPos The position within the op map, which contains the 286N/A * location path expression for this itterator. 286N/A * @param analysis Analysis bits of the entire pattern. 286N/A * @throws javax.xml.transform.TransformerException 286N/A // This iterator matches all kinds of nodes 286N/A * Return the first node out of the nodeset, if this expression is 286N/A * a nodeset expression. This is the default implementation for 286N/A * <p>WARNING: Do not mutate this class from this function!</p> 286N/A * @param xctxt The XPath runtime context. 286N/A * @return the first node out of the nodeset, or DTM.NULL. 286N/A * Returns the next node in the set and advances the position of the 286N/A * iterator in the set. After a NodeIterator is created, the first call 286N/A * to nextNode() returns the first node in the set. 286N/A * @return The next <code>Node</code> in the set being iterated over, or 286N/A * <code>null</code> if there are no more members in that set. 286N/A // m_lastFetched = next; 286N/A * Returns the axis being iterated, if it is known. 286N/A * @return Axis.CHILD, etc., or -1 if the axis is not known or is of multiple