Class DocumentSymbols


  • public final class DocumentSymbols
    extends java.lang.Object
    Utilities for document symbols.
    • Method Detail

      • asIterator

        public static java.util.Iterator<DocumentSymbol> asIterator​(DocumentSymbol documentSymbol)
        Returns an unmodifiable iterator over the document symbols using the breath-first traversal. That is, all the symbols of depth 0 are returned, then depth 1, then 2, and so on.

        It does not guarantee a well defined behavior of the resulting iterator if you modify the structure while the iteration is in progress.