|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--harpoon.Util.UnmodifiableIterator | +--harpoon.Analysis.EdgesIterator
EdgesIterator
is a generic iterator for a set of
CFGraphable
objects.
Constructor Summary | |
EdgesIterator(CFGraphable e)
Convenience constructor. |
|
EdgesIterator(HCodeElement e,
CFGrapher grapher)
Creates a EdgesIterator for all the edges
reachable by recursively traversing the successors of
e . |
Method Summary | |
boolean |
hasNext()
Checks if the set is empty. |
Object |
next()
Returns an CFGraphable if one remains. |
Methods inherited from class harpoon.Util.UnmodifiableIterator |
remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Iterator |
remove |
Constructor Detail |
public EdgesIterator(CFGraphable e)
public EdgesIterator(HCodeElement e, CFGrapher grapher)
EdgesIterator
for all the edges
reachable by recursively traversing the successors of
e
. Predecessors are not included in the set.
Method Detail |
public boolean hasNext()
CFGraphable
remain in the set. Else returns false.
hasNext
in interface Iterator
hasNext
in class UnmodifiableIterator
true
if the iterator has more elements.public Object next()
CFGraphable
if one remains.
this.hasNext()
== true.
CFGraphable
from the
set contained in this
and removes it from the
set.
next
in interface Iterator
next
in class UnmodifiableIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |