|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.IRIterator
cetus.hir.FlatIterator
public class FlatIterator
Iterates over the immediate children of a Traversable object.
| Field Summary |
|---|
| Fields inherited from class cetus.hir.IRIterator |
|---|
root |
| Constructor Summary | |
|---|---|
FlatIterator(Traversable parent)
Creates a new iterator. |
|
| Method Summary | |
|---|---|
void |
add(Traversable t)
Adds an object after the last object that was returned by next or previous. |
java.util.List |
getList(java.lang.Class c)
Returns a linked list of objects of Class c in the IR |
java.util.Set |
getSet(java.lang.Class c)
Returns a set of objects of Class c in the IR |
boolean |
hasNext()
Returns true if the iteration has more elements. |
boolean |
hasPrevious()
|
java.lang.Object |
next()
Returns the next element in the iteration. |
java.lang.Object |
previous()
|
void |
remove()
Removes the last object that was returned by next or previous. |
void |
reset()
Moves the iterator back to the beginning of the sequence. |
| Methods inherited from class cetus.hir.IRIterator |
|---|
containsCompatibleClass, next, next, nextExcept |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlatIterator(Traversable parent)
parent - The parent of the children to visit.| Method Detail |
|---|
public void add(Traversable t)
t - The object to add.public boolean hasNext()
IRIterator
hasNext in interface java.util.IteratorhasNext in class IRIteratorpublic boolean hasPrevious()
public java.lang.Object next()
IRIterator
next in interface java.util.Iteratornext in class IRIteratorpublic java.lang.Object previous()
public void remove()
remove in interface java.util.Iteratorremove in class IRIteratorpublic void reset()
IRIterator
reset in class IRIteratorpublic java.util.List getList(java.lang.Class c)
public java.util.Set getSet(java.lang.Class c)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||