Package org.apache.ivy.osgi.repo
Class AbstractFSManifestIterable.FSManifestIterator
java.lang.Object
org.apache.ivy.osgi.repo.AbstractFSManifestIterable.FSManifestIterator
- All Implemented Interfaces:
Iterator<ManifestAndLocation>
- Enclosing class:
- AbstractFSManifestIterable<T>
class AbstractFSManifestIterable.FSManifestIterator
extends Object
implements Iterator<ManifestAndLocation>
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe bundles files being lookup.private T
Stack of list of directories.private ManifestAndLocation
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
next
-
dirs
Stack of list of directories. An iterator in the stack represents the current directory being lookup. The first element in the stack is the root directory. The next element in the stack is an iterator on the children on the root. The last iterator in the stack points tocurrentDir
. -
bundleCandidates
The bundles files being lookup. -
currentDir
-
-
Constructor Details
-
FSManifestIterator
FSManifestIterator()
-
-
Method Details
-
hasNext
public boolean hasNext()Deep first tree lookup for the directories and the bundles are searched on each found directory.- Specified by:
hasNext
in interfaceIterator<ManifestAndLocation>
-
next
- Specified by:
next
in interfaceIterator<ManifestAndLocation>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<ManifestAndLocation>
-