Package ghidra.program.model.block
Interface CodeBlockIterator
- All Known Implementing Classes:
SimpleBlockIterator
,SingleEntSubIterator
An iterator interface over CodeBlocks.
Note: this iterator is also Iterable
. The hasNext()
and next()
methods of this interface throw a CancelledException
if the monitor is cancelled. The
iterator returned from iterator()
does not throw a cancelled exception. If
you need to know the cancelled state of this iterator, then you must check the cancelled state
of the monitor passed into this iterator via the CodeBlockModel
. See
TaskMonitor.isCancelled()
.
- See Also:
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
hasNext
Return true if next() will return a CodeBlock.- Returns:
- true if next() will return a CodeBlock.
- Throws:
CancelledException
- thrown if the operation is cancelled.
-
next
Return the next CodeBlock.- Returns:
- the next CodeBlock.
- Throws:
CancelledException
- thrown if the operation is cancelled.
-
iterator
-