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
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:CodeUnitIterator
Return true if there is a next CodeUnit.- Specified by:
hasNext
in interfaceCodeUnitIterator
- Specified by:
hasNext
in interfaceIterator<CodeUnit>
- See Also:
-
next
Description copied from interface:CodeUnitIterator
Get the next CodeUnit or null if no more CodeUnits.NOTE: This deviates from the standard
Iterator
interface by returning null instead of throwing an exception.- Specified by:
next
in interfaceCodeUnitIterator
- Specified by:
next
in interfaceIterator<CodeUnit>
- See Also:
-
remove
public void remove() -
iterator
-