Package ghidra.program.database.code
Class CodeUnitKeyIterator
- java.lang.Object
-
- ghidra.program.database.code.CodeUnitKeyIterator
-
- All Implemented Interfaces:
CodeUnitIterator
,java.lang.Iterable<CodeUnit>
,java.util.Iterator<CodeUnit>
public class CodeUnitKeyIterator extends java.lang.Object implements CodeUnitIterator
Converts an AddressKeyIterator into a CodeUnitIterator
-
-
Constructor Summary
Constructors Constructor Description CodeUnitKeyIterator(CodeManager codeMgr, AddressKeyIterator it, boolean forward)
Construct a new CodeUnitKeyIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Returns true if the iteration has more elements.java.util.Iterator<CodeUnit>
iterator()
CodeUnit
next()
Return the next code unit in the iteration.void
remove()
-
-
-
Constructor Detail
-
CodeUnitKeyIterator
public CodeUnitKeyIterator(CodeManager codeMgr, AddressKeyIterator it, boolean forward)
Construct a new CodeUnitKeyIterator- Parameters:
codeMgr
- the code managerit
- the addressKeyIteratorforward
- the direction to iterate.
-
-
Method Detail
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<CodeUnit>
- See Also:
Iterator.remove()
-
hasNext
public boolean hasNext()
Description copied from interface:CodeUnitIterator
Returns true if the iteration has more elements.- 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
Return the next code unit in the iteration.- Specified by:
next
in interfaceCodeUnitIterator
- Specified by:
next
in interfacejava.util.Iterator<CodeUnit>
- See Also:
CodeUnitIterator.next()
-
-