org.jaxen.util

Class StackedIterator

public abstract class StackedIterator extends Object implements Iterator

Deprecated: this iterator is no longer used to implement any of the Jaxen axes. If you have implemented a navigator-specific axis based on this class, take a look at the DescendantAxisIterator for ideas on how to remove that dependency.

Field Summary
Setcreated
LinkedListiteratorStack
Navigatornavigator
Constructor Summary
StackedIterator(Object contextNode, Navigator navigator)
protected StackedIterator()
Method Summary
protected abstract IteratorcreateIterator(Object contextNode)
IteratorcurrentIterator()
protected NavigatorgetNavigator()
booleanhasNext()
protected voidinit(Object contextNode, Navigator navigator)
protected IteratorinternalCreateIterator(Object contextNode)
Objectnext()
protected voidpushIterator(Iterator iter)
voidremove()

Field Detail

created

private Set created

iteratorStack

private LinkedList iteratorStack

navigator

private Navigator navigator

Constructor Detail

StackedIterator

public StackedIterator(Object contextNode, Navigator navigator)

StackedIterator

protected StackedIterator()

Method Detail

createIterator

protected abstract Iterator createIterator(Object contextNode)

currentIterator

private Iterator currentIterator()

getNavigator

protected Navigator getNavigator()

hasNext

public boolean hasNext()

init

protected void init(Object contextNode, Navigator navigator)

internalCreateIterator

protected Iterator internalCreateIterator(Object contextNode)

next

public Object next()

pushIterator

protected void pushIterator(Iterator iter)

remove

public void remove()