Package ghidra.program.database.symbol
Class TypeFilteredSymbolIterator
java.lang.Object
ghidra.program.database.symbol.TypeFilteredSymbolIterator
- All Implemented Interfaces:
SymbolIterator,Iterable<Symbol>,Iterator<Symbol>
Filters a symbol iterator to only return a specific symbol type
-
Field Summary
Fields inherited from interface ghidra.program.model.symbol.SymbolIterator
EMPTY_ITERATOR -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new TypeFilteredSymbolIterator -
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
-
TypeFilteredSymbolIterator
Construct a new TypeFilteredSymbolIterator- Parameters:
it- the symbol iterator to filtertype- the symbol type to filter on.
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:SymbolIteratorReturn true if there is a next symbol.- Specified by:
hasNextin interfaceIterator<Symbol>- Specified by:
hasNextin interfaceSymbolIterator- See Also:
-
next
Description copied from interface:SymbolIteratorGet the next symbol or null if no more symbols.NOTE: This deviates from the standard
Iteratorinterface by returning null instead of throwing an exception.- Specified by:
nextin interfaceIterator<Symbol>- Specified by:
nextin interfaceSymbolIterator- See Also:
-
remove
public void remove() -
iterator
-