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>bundleCandidatesThe bundles files being lookup.private TcurrentDirprivate java.util.Stack<java.util.Iterator<T>>dirsStack of list of directories.private ManifestAndLocationnext
-
Constructor Summary
Constructors Constructor Description FSManifestIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Deep first tree lookup for the directories and the bundles are searched on each found directory.ManifestAndLocationnext()voidremove()
-
-
-
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:
hasNextin interfacejava.util.Iterator<ManifestAndLocation>
-
next
public ManifestAndLocation next()
- Specified by:
nextin interfacejava.util.Iterator<ManifestAndLocation>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<ManifestAndLocation>
-
-