|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.IRIterator
public abstract class IRIterator
An iterator implementing this interface supports special versions of next.
| Field Summary | |
|---|---|
protected Traversable |
root
|
| Constructor Summary | |
|---|---|
protected |
IRIterator(Traversable root)
|
| Method Summary | |
|---|---|
protected boolean |
containsCompatibleClass(java.util.Set<java.lang.Class> s,
java.lang.Class c)
Checks if s contains a superset of c. |
abstract boolean |
hasNext()
Returns true if the iteration has more elements. |
abstract java.lang.Object |
next()
Returns the next element in the iteration. |
java.lang.Object |
next(java.lang.Class c)
Returns the next element in the iteration that is an instance of a certain class. |
java.lang.Object |
next(java.util.Set s)
Returns the next element in the iteration that is an instance of a class in the set. |
java.lang.Object |
nextExcept(java.util.Set s)
Returns the next element in the iteration that is not an instance of a class in the set. |
void |
remove()
This operation is not supported. |
abstract void |
reset()
Moves the iterator back to the beginning of the sequence. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Traversable root
| Constructor Detail |
|---|
protected IRIterator(Traversable root)
| Method Detail |
|---|
protected boolean containsCompatibleClass(java.util.Set<java.lang.Class> s,
java.lang.Class c)
public abstract boolean hasNext()
hasNext in interface java.util.Iteratorpublic abstract java.lang.Object next()
next in interface java.util.Iterator
public java.lang.Object next(java.lang.Class c)
throws java.util.NoSuchElementException
c - The class of which the next element must be a instance.
java.util.NoSuchElementException - if there are no elements of class c.
public java.lang.Object next(java.util.Set s)
throws java.util.NoSuchElementException
s - A set of classes of which the next element must be an instance.
java.util.NoSuchElementException - if there are no elements of classes in s.
public java.lang.Object nextExcept(java.util.Set s)
throws java.util.NoSuchElementException
s - A set of classes of which the next element must not be an instance.
java.util.NoSuchElementException - if there are no elements that are not of classes in s.public void remove()
remove in interface java.util.Iteratorpublic abstract void reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||