Package ghidra.program.database.code
Class EmptyCodeUnitIterator
java.lang.Object
ghidra.program.database.code.EmptyCodeUnitIterator
- All Implemented Interfaces:
CodeUnitIterator,Iterable<CodeUnit>,Iterator<CodeUnit>
CodeUnitIterator that represents an empty set of codeunits.
-
Field Summary
Fields inherited from interface ghidra.program.model.listing.CodeUnitIterator
EMPTY_ITERATOR -
Constructor Summary
Constructors -
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
-
EmptyCodeUnitIterator
public EmptyCodeUnitIterator()Constructs a new EmptyCodeUnitIterator
-
-
Method Details
-
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:
-
remove
public void remove() -
iterator
-