Package ghidra.program.database.util
Class IndexedAddressIterator
java.lang.Object
ghidra.program.database.util.IndexedAddressIterator
- All Implemented Interfaces:
AddressIterator,Iterable<Address>,Iterator<Address>
Iterates over a FieldIterator; the field is the address but not
the key; the column for the field must be indexed.
-
Field Summary
Fields inherited from interface ghidra.program.model.address.AddressIterator
EMPTY_ITERATOR -
Constructor Summary
ConstructorsConstructorDescriptionIndexedAddressIterator(DBFieldIterator iter, AddressMap addrMap, int colIndex, ErrorHandler errHandler) Constructor -
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
-
IndexedAddressIterator
public IndexedAddressIterator(DBFieldIterator iter, AddressMap addrMap, int colIndex, ErrorHandler errHandler) Constructor- Parameters:
iter- field iterator that is the addressaddrMap- address map to convert the longs to addressescolIndex- indexed column in the record
-
-
Method Details
-
remove
public void remove() -
hasNext
public boolean hasNext()Description copied from interface:AddressIteratorChecks if there is a next address in the iteration.- Specified by:
hasNextin interfaceAddressIterator- Specified by:
hasNextin interfaceIterator<Address>- Returns:
- true if there is a next address.
- See Also:
-
next
Description copied from interface:AddressIteratorGet the next address.NOTE: This deviates from the standard
Iteratorinterface by returning null instead of throwing an exception.- Specified by:
nextin interfaceAddressIterator- Specified by:
nextin interfaceIterator<Address>- Returns:
- the next address in the iteration.
- See Also:
-
iterator
- Specified by:
iteratorin interfaceAddressIterator- Specified by:
iteratorin interfaceIterable<Address>
-