public DTMAxisIterator setStartNode(final int node) { if (_isRestartable) { _source.setStartNode(node); _ready = true; } return this; }
public HeapNode setStartNode(int node) { iterator.setStartNode(node); return this; }
public DTMAxisIterator setStartNode(int node) { _source.setStartNode(node); return this; }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { _startNode = node; _source.setStartNode(node); resetPosition(); _isRestartable = false; } return this; }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { // iterator is not a clone _source.setStartNode(node); // Calculate the position of the node in the set _position = 1; while ((node = _source.next()) != END && node != _match) { _position++; } } return this; }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { // Set start node for left-hand iterator... _source.setStartNode(_startNode = node); // ... and get start node for right-hand iterator from left-hand, // with special case for //* path - see ParentLocationPath _iterator.setStartNode(_includeSelf ? _startNode : _source.next()); return resetPosition(); } return this; }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { _source.setStartNode(_startNode = node); return resetPosition(); } return this; }
public DTMAxisIterator setStartNode(int node) { _startNode = DTMDefaultBase.ROOTNODE; if (_isRestartable) { _source.setStartNode(_startNode); resetPosition(); } return this; }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { _source.setStartNode(_startNode = node); return resetPosition(); } return this; }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { _source.setStartNode(_startNode = node); return resetPosition(); } return this; }
/** * Set start to END should 'close' the iterator, * i.e. subsequent call to next() should return END. * * @param node Sets the root of the iteration. * * @return A DTMAxisIterator set to the start of the iteration. */ public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { _startNode = node; m_baseIterator.setStartNode(node); resetPosition(); } return this; }
public DTMAxisIterator getChildren(final int node) { if (_enhancedDOM != null) { return _enhancedDOM.getChildren(node); } else { DTMAxisIterator iterator = _dom.getChildren(node); return iterator.setStartNode(node); } }
/** * Initialize the context values for this expression * after it is cloned. * * @param context The XPath runtime context for this * transformation. */ public void setRoot(int context, Object environment) { super.setRoot(context, environment); if(m_axis > -1) m_iterator = m_cdtm.getAxisIterator(m_axis); m_iterator.setStartNode(m_context); }
/** * Initialize the context values for this expression * after it is cloned. * * @param context The XPath runtime context for this * transformation. */ public void setRoot(int context, Object environment) { super.setRoot(context, environment); if(m_axis > -1) m_iterator = m_cdtm.getAxisIterator(m_axis); m_iterator.setStartNode(m_context); }
/** * Set context node for the iterator. This will cause the iterator * to reset itself, reevaluate arguments to the function, look up * nodes in the input and reinitialize its internal heap. * * @param node the context node * @return A {@link DTMAxisIterator} set to the start of the iteration. */ public DTMAxisIterator setStartNode(int node) { _startNode = node; // If the arugment to the function is a node set, set the // context node on it. if (_keyValueIterator != null) { _keyValueIterator = _keyValueIterator.setStartNode(node); } init(); return super.setStartNode(node); }
/** * Set the root node of the TreeWalker. * (Not part of the DOM2 TreeWalker interface). * * @param root The context node of this step. */ public void setRoot(int root) { super.setRoot(root); m_iterator = getDTM(root).getAxisIterator(m_axis); m_iterator.setStartNode(root); }
/** * Set the root node of the TreeWalker. * (Not part of the DOM2 TreeWalker interface). * * @param root The context node of this step. */ public void setRoot(int root) { super.setRoot(root); m_iterator = getDTM(root).getAxisIterator(m_axis); m_iterator.setStartNode(root); }
public DTMAxisIterator reset() { _source.reset(); // Special case for //* path - see ParentLocationPath _iterator.setStartNode(_includeSelf ? _startNode : _source.next()); return resetPosition(); }
public int next() { for (int node;;) { // Try to get another node from the right-hand iterator if ((node = _iterator.next()) != END) { return returnNode(node); } // If not, get the next starting point from left-hand iterator... else if ((node = _source.next()) == END) { return END; } // ...and pass it on to the right-hand iterator else { _iterator.setStartNode(node); } } }
public DTMAxisIterator setStartNode(int node) { if (_isRestartable) { _source.setStartNode(_startNode = node); _nodes.clear(); while ((node = _source.next()) != END) { _nodes.add(node); } _currentIndex = 0; resetPosition(); } return this; }