Package ghidra.program.database.code
Class InstructionRecordIterator
- java.lang.Object
-
- ghidra.program.database.code.InstructionRecordIterator
-
- All Implemented Interfaces:
InstructionIterator,java.lang.Iterable<Instruction>,java.util.Iterator<Instruction>
public class InstructionRecordIterator extends java.lang.Object implements InstructionIterator
Converts a record iterator into an instruction iterator.
-
-
Constructor Summary
Constructors Constructor Description InstructionRecordIterator(CodeManager codeMgr, RecordIterator it, boolean forward)Constructs a new InstructionRecordIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Returns true if the iteration has more elements.java.util.Iterator<Instruction>iterator()Instructionnext()Return the next instruction in the iteration.voidremove()
-
-
-
Constructor Detail
-
InstructionRecordIterator
public InstructionRecordIterator(CodeManager codeMgr, RecordIterator it, boolean forward)
Constructs a new InstructionRecordIterator- Parameters:
codeMgr- the code managerit- the record iterator.forward- the direction of the iterator.
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:InstructionIteratorReturns true if the iteration has more elements.- Specified by:
hasNextin interfaceInstructionIterator- Specified by:
hasNextin interfacejava.util.Iterator<Instruction>- See Also:
CodeUnitIterator.hasNext()
-
next
public Instruction next()
Description copied from interface:InstructionIteratorReturn the next instruction in the iteration.- Specified by:
nextin interfaceInstructionIterator- Specified by:
nextin interfacejava.util.Iterator<Instruction>- See Also:
CodeUnitIterator.next()
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<Instruction>- See Also:
Iterator.remove()
-
iterator
public java.util.Iterator<Instruction> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Instruction>
-
-