net.sf.saxon.trace
public class ContextStackIterator extends Object implements Iterator
| Constructor Summary | |
|---|---|
| ContextStackIterator(XPathContext context)
Create an iterator over the stack of XPath dynamic context objects, starting with the top-most
stackframe and working down. | |
| Method Summary | |
|---|---|
| boolean | hasNext()
Returns true if the iteration has more elements. |
| Object | next()
Returns the next element in the iteration. |
| void | remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
Parameters: context the current context
Returns: true if the iterator has more elements.
Returns: the next element in the iteration, which will always be an instance of ContextStackFrame
Throws: java.util.NoSuchElementException iteration has no more elements.
Throws: UnsupportedOperationException as the remove operation is not supported by this Iterator.