Package ghidra.program.model.symbol
Class SymbolIteratorAdapter
- java.lang.Object
-
- ghidra.program.model.symbol.SymbolIteratorAdapter
-
- All Implemented Interfaces:
SymbolIterator
,java.lang.Iterable<Symbol>
,java.util.Iterator<Symbol>
public class SymbolIteratorAdapter extends java.lang.Object implements SymbolIterator
-
-
Field Summary
-
Fields inherited from interface ghidra.program.model.symbol.SymbolIterator
EMPTY_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description SymbolIteratorAdapter(java.util.Iterator<? extends Symbol> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Return true if there is a next symbol.java.util.Iterator<Symbol>
iterator()
Symbol
next()
Get the next symbol or null if no more symbols.void
remove()
-
-
-
Constructor Detail
-
SymbolIteratorAdapter
public SymbolIteratorAdapter(java.util.Iterator<? extends Symbol> iterator)
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:SymbolIterator
Return true if there is a next symbol.- Specified by:
hasNext
in interfacejava.util.Iterator<Symbol>
- Specified by:
hasNext
in interfaceSymbolIterator
-
next
public Symbol next()
Description copied from interface:SymbolIterator
Get the next symbol or null if no more symbols.NOTE: This deviates from the standard
Iterator
interface by returning null instead of throwing an exception.- Specified by:
next
in interfacejava.util.Iterator<Symbol>
- Specified by:
next
in interfaceSymbolIterator
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Symbol>
-
-