|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.IRIterator
cetus.hir.DepthFirstIterator
public class DepthFirstIterator
Iterates over Traversable objects in depth-first order.
| Field Summary |
|---|
| Fields inherited from class cetus.hir.IRIterator |
|---|
root |
| Constructor Summary | |
|---|---|
DepthFirstIterator(Traversable init)
Creates a new iterator. |
|
| Method Summary | |
|---|---|
java.util.LinkedList |
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. |
java.lang.Object |
next()
Returns the next element in the iteration. |
void |
pruneOn(java.lang.Class c)
|
void |
reset()
Moves the iterator back to the beginning of the sequence. |
| Methods inherited from class cetus.hir.IRIterator |
|---|
containsCompatibleClass, next, next, nextExcept, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DepthFirstIterator(Traversable init)
init - The first object to visit.| Method Detail |
|---|
public boolean hasNext()
IRIterator
hasNext in interface java.util.IteratorhasNext in class IRIteratorpublic java.lang.Object next()
IRIterator
next in interface java.util.Iteratornext in class IRIteratorpublic void pruneOn(java.lang.Class c)
public java.util.LinkedList getList(java.lang.Class c)
public java.util.Set getSet(java.lang.Class c)
public void reset()
IRIterator
reset in class IRIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||