Package org.apache.ivy.osgi.repo
Class AbstractFSManifestIterable.FSManifestIterator
- java.lang.Object
-
- org.apache.ivy.osgi.repo.AbstractFSManifestIterable.FSManifestIterator
-
- All Implemented Interfaces:
java.util.Iterator<ManifestAndLocation>
- Enclosing class:
- AbstractFSManifestIterable<T>
class AbstractFSManifestIterable.FSManifestIterator extends java.lang.Object implements java.util.Iterator<ManifestAndLocation>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Iterator<T>
bundleCandidates
The bundles files being lookup.private T
currentDir
private java.util.Stack<java.util.Iterator<T>>
dirs
Stack of list of directories.private ManifestAndLocation
next
-
Constructor Summary
Constructors Constructor Description FSManifestIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Deep first tree lookup for the directories and the bundles are searched on each found directory.ManifestAndLocation
next()
void
remove()
-
-
-
Field Detail
-
next
private ManifestAndLocation next
-
dirs
private java.util.Stack<java.util.Iterator<T>> 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
private java.util.Iterator<T> bundleCandidates
The bundles files being lookup.
-
currentDir
private T currentDir
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deep first tree lookup for the directories and the bundles are searched on each found directory.- Specified by:
hasNext
in interfacejava.util.Iterator<ManifestAndLocation>
-
next
public ManifestAndLocation next()
- Specified by:
next
in interfacejava.util.Iterator<ManifestAndLocation>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<ManifestAndLocation>
-
-