Package ghidra.program.model.symbol

# Interface SymbolIterator

All Superinterfaces:
  `Iterable<Symbol>`, `Iterator<Symbol>`

All Known Implementing Classes:
  `SymbolIteratorAdapter`, `TypeFilteredSymbolIterator`

public interface SymbolIterator extends Iterator<Symbol>, Iterable<Symbol>
Iterator defined to return Symbol objects.

See Also:
  - `CollectionUtils.asIterable(T)`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final SymbolIterator`
  `EMPTY_ITERATOR`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  Return true if there is a next symbol.
  `Symbol`
  `next()`
  Get the next symbol or null if no more symbols.

  ### Methods inherited from interface java.lang.Iterable

  `forEach, iterator, spliterator`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, remove`

- ## Field Details

  - ### EMPTY_ITERATOR

    static final SymbolIterator EMPTY_ITERATOR

- ## Method Details

  - ### hasNext

    boolean hasNext()
    Return true if there is a next symbol.
    Specified by:
      `hasNext` in interface `Iterator<Symbol>`

  - ### next

    Symbol next()
    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 interface `Iterator<Symbol>`