Package net.sf.saxon.tree.jiter
Class TopDownStackIterable<T>
- java.lang.Object
-
- net.sf.saxon.tree.jiter.TopDownStackIterable<T>
-
- Type Parameters:
T
- the type of the items on the stack
- All Implemented Interfaces:
Iterable<T>
public class TopDownStackIterable<T> extends Object implements Iterable<T>
Provides an iterable over a stack that iterates in order from top to bottom.Note: Java stacks natively iterate from bottom to top; C# stacks from top to bottom.
-
-
Constructor Summary
Constructors Constructor Description TopDownStackIterable(Stack<T> stack)
Construct a top-down iterable view of a stack
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<T>
iterator()
Returns an iterator over elements in the stack, starting at the top of stack and proceeding to the bottom-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-