Package ghidra.program.database.code
Class InstructionRecordIterator
java.lang.Object
ghidra.program.database.code.InstructionRecordIterator
- All Implemented Interfaces:
InstructionIterator
,Iterable<Instruction>
,Iterator<Instruction>
Converts a record iterator into an instruction iterator.
-
Constructor Summary
ConstructorDescriptionInstructionRecordIterator
(CodeManager codeMgr, RecordIterator it, boolean forward) Constructs a new InstructionRecordIterator -
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
-
InstructionRecordIterator
Constructs a new InstructionRecordIterator- Parameters:
codeMgr
- the code managerit
- the record iterator.forward
- the direction of the iterator.
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:InstructionIterator
Returns true if the iteration has more elements.- Specified by:
hasNext
in interfaceInstructionIterator
- Specified by:
hasNext
in interfaceIterator<Instruction>
- See Also:
-
next
Description copied from interface:InstructionIterator
Return the next instruction in the iteration.- Specified by:
next
in interfaceInstructionIterator
- Specified by:
next
in interfaceIterator<Instruction>
- See Also:
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<Instruction>
- See Also:
-
iterator
- Specified by:
iterator
in interfaceIterable<Instruction>
-