Package ghidra.program.database.code
Class EmptyCodeUnitIterator
- java.lang.Object
-
- ghidra.program.database.code.EmptyCodeUnitIterator
-
- All Implemented Interfaces:
CodeUnitIterator
,java.lang.Iterable<CodeUnit>
,java.util.Iterator<CodeUnit>
public class EmptyCodeUnitIterator extends java.lang.Object implements CodeUnitIterator
CodeUnitIterator that represents an empty set of codeunits.
-
-
Field Summary
-
Fields inherited from interface ghidra.program.model.listing.CodeUnitIterator
EMPTY_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description EmptyCodeUnitIterator()
Constructs a new EmptyCodeUnitIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Return true if there is a next CodeUnit.java.util.Iterator<CodeUnit>
iterator()
CodeUnit
next()
Get the next CodeUnit or null if no more CodeUnits.void
remove()
-
-
-
Method Detail
-
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 interfacejava.util.Iterator<CodeUnit>
- See Also:
CodeUnitIterator.hasNext()
-
next
public CodeUnit 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 interfacejava.util.Iterator<CodeUnit>
- See Also:
CodeUnitIterator.next()
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<CodeUnit>
- See Also:
Iterator.remove()
-
-