public final class DocumentSymbols
extends java.lang.Object
document symbols
.Modifier and Type | Class and Description |
---|---|
protected static class |
DocumentSymbols.BreadthFirstIterator<T> |
protected static class |
DocumentSymbols.DocumentSymbolIterator |
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<DocumentSymbol> |
asIterator(DocumentSymbol documentSymbol)
Returns an unmodifiable iterator over the
document
symbols using the breath-first traversal. |
public static java.util.Iterator<DocumentSymbol> asIterator(DocumentSymbol documentSymbol)
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.