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 boolean
hasNext()
Returns true if the iteration has more elements.java.util.Iterator<Instruction>
iterator()
Instruction
next()
Return the next instruction in the iteration.void
remove()
-
-
-
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:InstructionIterator
Returns true if the iteration has more elements.- Specified by:
hasNext
in interfaceInstructionIterator
- Specified by:
hasNext
in interfacejava.util.Iterator<Instruction>
- See Also:
CodeUnitIterator.hasNext()
-
next
public Instruction next()
Description copied from interface:InstructionIterator
Return the next instruction in the iteration.- Specified by:
next
in interfaceInstructionIterator
- Specified by:
next
in interfacejava.util.Iterator<Instruction>
- See Also:
CodeUnitIterator.next()
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Instruction>
- See Also:
Iterator.remove()
-
iterator
public java.util.Iterator<Instruction> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Instruction>
-
-