Package org.codehaus.janino.util.iterator
Some generic
Iterator
-related helper classes.-
Class Summary Class Description DirectoryIterator AnIterator
that finds the normalFile
s who's names areaccepted
by thefileNameFilter
and that exist in the givenrootDirectory
, and those that exist in all subdirectories of therootDirectory
who's names areFilenameFilter.accept(java.io.File, java.lang.String)
ed by thedirectoryNameFilter
EnumerationIterator<T> AnIterator
that iterates over the elements of anEnumeration
.FilterIterator<T> AnIterator
that retrieves its elements from a delegateIterator
.FilterListIterator<T> AnListIterator
that retrieves its elements from a delegateListIterator
.IteratorCollection<T> ACollection
that lazily reads its elements from anIterator
.MultiDimensionalIterator AnIterator
that iterates over a delegate, which produces arrays,Collection
s,Enumeration
s orIterator
s.ProducerIterator<T> AnIterator
that iterates over all the objects produced by a delegateProducer
.ReverseListIterator<T> AListIterator
that reverses the direction of all operations of a delegateListIterator
.TransformingIterator<T1,T2> AnIterator
that transforms its elements on-the-fly.TraversingIterator AnIterator
that iterates over a delegate, and while it encounters an array, aCollection
, anEnumeration
or aIterator
element, it iterates over it recursively. -
Exception Summary Exception Description UniterableElementException Thrown byMultiDimensionalIterator
to indicate that it has encountered an element that cannot be iterated.