Package ghidra.program.database.map
Class AddressKeyAddressIterator
- java.lang.Object
 - 
- ghidra.program.database.map.AddressKeyAddressIterator
 
 
- 
- All Implemented Interfaces:
 AddressIterator,java.lang.Iterable<Address>,java.util.Iterator<Address>
public class AddressKeyAddressIterator extends java.lang.Object implements AddressIterator
Converts an AddressKeyIterator or an addressKeyAddressIterator into an AddressIterator 
- 
- 
Field Summary
- 
Fields inherited from interface ghidra.program.model.address.AddressIterator
EMPTY_ITERATOR 
 - 
 
- 
Constructor Summary
Constructors Constructor Description AddressKeyAddressIterator(DBLongIterator keyIter, boolean forward, AddressMap addrMap, ErrorHandler errHandler)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Checks if there is a next address in the iteration.java.util.Iterator<Address>iterator()Addressnext()Get the next address.voidremove() 
 - 
 
- 
- 
Constructor Detail
- 
AddressKeyAddressIterator
public AddressKeyAddressIterator(DBLongIterator keyIter, boolean forward, AddressMap addrMap, ErrorHandler errHandler)
Constructor.- Parameters:
 keyIter- address key iterator, may be null. All long values must decode properly with the specified addrMap.forward- true to iterate in the direction of increasing addresses.addrMap- address maperrHandler- IO error handler (may be null)
 
 - 
 
- 
Method Detail
- 
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 interfacejava.util.Iterator<Address>- Returns:
 - true if there is a next address.
 - See Also:
 AddressIterator.hasNext()
 
- 
next
public Address 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 interfacejava.util.Iterator<Address>- Returns:
 - the next address in the iteration.
 - See Also:
 AddressIterator.next()
 
- 
remove
public void remove()
- Specified by:
 removein interfacejava.util.Iterator<Address>- See Also:
 Iterator.remove()
 
 - 
 
 -