Package ghidra.program.model.listing
Interface CodeUnitIterator
-
- All Known Implementing Classes:
CodeUnitKeyIterator
,CommentTypeFilterIterator
,EmptyCodeUnitIterator
public interface CodeUnitIterator extends java.util.Iterator<CodeUnit>, java.lang.Iterable<CodeUnit>
Interface to define an iterator over over some set of code units.- See Also:
CollectionUtils.asIterable(T)
-
-
Field Summary
Fields Modifier and Type Field Description static CodeUnitIterator
EMPTY_ITERATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasNext()
Return true if there is a next CodeUnit.CodeUnit
next()
Get the next CodeUnit or null if no more CodeUnits.
-
-
-
Field Detail
-
EMPTY_ITERATOR
static final CodeUnitIterator EMPTY_ITERATOR
-
-
Method Detail
-
hasNext
boolean hasNext()
Return true if there is a next CodeUnit.- Specified by:
hasNext
in interfacejava.util.Iterator<CodeUnit>
-
-