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
ConstructorsConstructorDescriptionCodeUnitKeyIterator(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, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:CodeUnitIteratorReturn true if there is a next CodeUnit.- Specified by:
hasNextin interfaceCodeUnitIterator- Specified by:
hasNextin interfaceIterator<CodeUnit>- See Also:
-
next
Description copied from interface:CodeUnitIteratorGet the next CodeUnit or null if no more CodeUnits.NOTE: This deviates from the standard
Iteratorinterface by returning null instead of throwing an exception.- Specified by:
nextin interfaceCodeUnitIterator- Specified by:
nextin interfaceIterator<CodeUnit>- See Also:
-
iterator
-