Package org.eclipse.lsp4j.util
Class DocumentSymbols
- java.lang.Object
-
- org.eclipse.lsp4j.util.DocumentSymbols
-
public final class DocumentSymbols extends java.lang.ObjectUtilities fordocument symbols.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDocumentSymbols.BreadthFirstIterator<T>protected static classDocumentSymbols.DocumentSymbolIterator
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Iterator<DocumentSymbol>asIterator(DocumentSymbol documentSymbol)Returns an unmodifiable iterator over thedocument symbolsusing the breath-first traversal.
-
-
-
Method Detail
-
asIterator
public static java.util.Iterator<DocumentSymbol> asIterator(DocumentSymbol documentSymbol)
Returns an unmodifiable iterator over thedocument symbolsusing 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.
-
-