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 AnIterator
that iterates over the elements of anEnumeration
.FilterIterator AnIterator
that retrieves its elements from a delegateIterator
.FilterListIterator AnListIterator
that retrieves its elements from a delegateListIterator
.IteratorCollection 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 AnIterator
that iterates over all the objects produced by a delegateProducer
.ReverseListIterator AListIterator
that reverses the direction of all operations of a delegateListIterator
.TransformingIterator 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 into it recursively. -
Exception Summary Exception Description UniterableElementException Thrown byMultiDimensionalIterator
to indicate that it has encountered an element that cannot be iterated.