Package ghidra.program.model.address
Interface AddressIterator
-
- All Known Implementing Classes:
AddressIteratorAdapter,AddressIteratorConverter,AddressKeyAddressIterator,CommentTypeFilterAddressIterator,EmptyAddressIterator,IndexedAddressIterator
public interface AddressIterator extends java.util.Iterator<Address>, java.lang.Iterable<Address>
AddressIterator is used to iterate over some set of addresses.
Note: The next and previous methods return Addresss.
- See Also:
CollectionUtils.asIterable(T)
-
-
Field Summary
Fields Modifier and Type Field Description static AddressIteratorEMPTY_ITERATOR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Checks if there is a next address in the iteration.Addressnext()Get the next address.
-
-
-
Field Detail
-
EMPTY_ITERATOR
static final AddressIterator EMPTY_ITERATOR
-
-
Method Detail
-
next
Address next()
Get the next address.NOTE: This deviates from the standard
Iteratorinterface by returning null instead of throwing an exception.- Specified by:
nextin interfacejava.util.Iterator<Address>- Returns:
- the next address in the iteration.
-
hasNext
boolean hasNext()
Checks if there is a next address in the iteration.- Specified by:
hasNextin interfacejava.util.Iterator<Address>- Returns:
- true if there is a next address.
-
-