/** * Get all the Namespaces in-scope at the current level of the stack. * @see #push(Element) for the details on the data order. * @return A read-only Iterator containing added Namespaces (may be empty); */ @Override public Iterator<Namespace> iterator() { return new ForwardWalker(scope[depth]); }
@Override public Iterator<Namespace> iterator() { return forward ? new ForwardWalker(namespaces) : new BackwardWalker(namespaces); } }