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
ConstructorsConstructorDescriptionInstructionRecordIterator(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, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:InstructionIteratorReturns true if the iteration has more elements.- Specified by:
hasNextin interfaceInstructionIterator- Specified by:
hasNextin interfaceIterator<Instruction>- See Also:
-
next
Description copied from interface:InstructionIteratorReturn the next instruction in the iteration.- Specified by:
nextin interfaceInstructionIterator- Specified by:
nextin interfaceIterator<Instruction>- See Also:
-
remove
public void remove()- Specified by:
removein interfaceIterator<Instruction>- See Also:
-
iterator
- Specified by:
iteratorin interfaceIterable<Instruction>
-