Package ghidra.program.database.code
Class CodeUnitKeyIterator
java.lang.Object
ghidra.program.database.code.CodeUnitKeyIterator
- All Implemented Interfaces:
CodeUnitIterator
,Iterable<CodeUnit>
,Iterator<CodeUnit>
Converts an AddressKeyIterator into a CodeUnitIterator
-
Field Summary
Fields inherited from interface ghidra.program.model.listing.CodeUnitIterator
EMPTY_ITERATOR
-
Constructor Summary
ConstructorDescriptionCodeUnitKeyIterator
(CodeManager codeMgr, AddressKeyIterator it, boolean forward) Construct a new CodeUnitKeyIterator -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CodeUnitKeyIterator
Construct a new CodeUnitKeyIterator- Parameters:
codeMgr
- the code managerit
- the addressKeyIteratorforward
- the direction to iterate.
-
-
Method Details
-
remove
public void remove() -
hasNext
public boolean hasNext()Description copied from interface:CodeUnitIterator
Return true if there is a next CodeUnit.- Specified by:
hasNext
in interfaceCodeUnitIterator
- Specified by:
hasNext
in interfaceIterator<CodeUnit>
- See Also:
-
next
Description copied from interface:CodeUnitIterator
Get the next CodeUnit or null if no more CodeUnits.NOTE: This deviates from the standard
Iterator
interface by returning null instead of throwing an exception.- Specified by:
next
in interfaceCodeUnitIterator
- Specified by:
next
in interfaceIterator<CodeUnit>
- See Also:
-
iterator
-