Package ghidra.program.model.block
Interface CodeBlockIterator
-
- All Superinterfaces:
java.lang.Iterable<CodeBlock>
- All Known Implementing Classes:
SimpleBlockIterator,SingleEntSubIterator
public interface CodeBlockIterator extends java.lang.Iterable<CodeBlock>
An iterator interface over CodeBlocks.Note: this iterator is also
Iterable. ThehasNext()andnext()methods of this interface throw aCancelledExceptionif the monitor is cancelled. The iterator returned fromiterator()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 theCodeBlockModel. SeeTaskMonitor.isCancelled().- See Also:
CodeBlock,CollectionUtils.asIterable(T)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanhasNext()Return true if next() will return a CodeBlock.default java.util.Iterator<CodeBlock>iterator()CodeBlocknext()Return the next CodeBlock.
-
-
-
Method Detail
-
hasNext
boolean hasNext() throws CancelledExceptionReturn true if next() will return a CodeBlock.- Returns:
- true if next() will return a CodeBlock.
- Throws:
CancelledException- thrown if the operation is cancelled.
-
next
CodeBlock next() throws CancelledException
Return the next CodeBlock.- Returns:
- the next CodeBlock.
- Throws:
CancelledException- thrown if the operation is cancelled.
-
-