Package ghidra.program.database.util
Class IndexedAddressIterator
- java.lang.Object
-
- ghidra.program.database.util.IndexedAddressIterator
-
- All Implemented Interfaces:
AddressIterator
,java.lang.Iterable<Address>
,java.util.Iterator<Address>
public class IndexedAddressIterator extends java.lang.Object implements AddressIterator
Iterates over a FieldIterator; the field is the address but not the key; the column for the field must be indexed.
-
-
Constructor Summary
Constructors Constructor Description IndexedAddressIterator(DBFieldIterator iter, AddressMap addrMap, int colIndex, ErrorHandler errHandler)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Checks if there is a next address in the iteration.java.util.Iterator<Address>
iterator()
Address
next()
Get the next address.void
remove()
-
-
-
Constructor Detail
-
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 Detail
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Address>
- See Also:
Iterator.remove()
-
hasNext
public boolean hasNext()
Description copied from interface:AddressIterator
Checks if there is a next address in the iteration.- Specified by:
hasNext
in interfaceAddressIterator
- Specified by:
hasNext
in interfacejava.util.Iterator<Address>
- Returns:
- true if there is a next address.
- See Also:
AddressIterator.hasNext()
-
next
public Address next()
Description copied from interface:AddressIterator
Get the next address.- Specified by:
next
in interfaceAddressIterator
- Specified by:
next
in interfacejava.util.Iterator<Address>
- Returns:
- the next address in the iteration.
- See Also:
AddressIterator.next()
-
-