Class ContextStackIterator

    • Constructor Detail

      • ContextStackIterator

        public ContextStackIterator​(XPathContext context)
        Create an iterator over the stack of XPath dynamic context objects, starting with the top-most stackframe and working down. The objects returned by this iterator will be of class ContextStackFrame. Note that only "major" context objects are considered - those that have a stack frame of their own.
        Parameters:
        context - the current context
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
        Specified by:
        hasNext in interface Iterator<ContextStackFrame>
        Returns:
        true if the iterator has more elements.