Class HierarchicalDocumentSymbolService
- java.lang.Object
-
- org.eclipse.xtext.ide.server.symbol.HierarchicalDocumentSymbolService
-
- All Implemented Interfaces:
IDocumentSymbolService
@Beta public class HierarchicalDocumentSymbolService extends java.lang.Object implements IDocumentSymbolService
Document symbol service that is comply with the LSP 3.10.0 version. Unlike theDocumentSymbolService, this service can provide hierarchical document symbols.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.ide.server.symbol.IDocumentSymbolService
IDocumentSymbolService.Noop
-
-
Constructor Summary
Constructors Constructor Description HierarchicalDocumentSymbolService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Iterator<java.lang.Object>getAllContents(org.eclipse.emf.ecore.resource.Resource resource)java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>>getSymbols(Document document, org.eclipse.xtext.resource.XtextResource resource, org.eclipse.lsp4j.DocumentSymbolParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>>getSymbols(org.eclipse.xtext.resource.XtextResource resource, org.eclipse.xtext.util.CancelIndicator cancelIndicator)static booleanisValid(org.eclipse.lsp4j.DocumentSymbol symbol)falseif the argument isnullor any of theNonNullproperties arenull.protected com.google.common.base.Optional<org.eclipse.emf.ecore.EObject>toEObject(java.lang.Object object)
-
-
-
Method Detail
-
isValid
public static boolean isValid(org.eclipse.lsp4j.DocumentSymbol symbol)
falseif the argument isnullor any of theNonNullproperties arenull. Otherwise,true.
-
getSymbols
public java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>> getSymbols(Document document, org.eclipse.xtext.resource.XtextResource resource, org.eclipse.lsp4j.DocumentSymbolParams params, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
- Specified by:
getSymbolsin interfaceIDocumentSymbolService
-
getSymbols
public java.util.List<org.eclipse.lsp4j.jsonrpc.messages.Either<org.eclipse.lsp4j.SymbolInformation,org.eclipse.lsp4j.DocumentSymbol>> getSymbols(org.eclipse.xtext.resource.XtextResource resource, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
-
getAllContents
protected java.util.Iterator<java.lang.Object> getAllContents(org.eclipse.emf.ecore.resource.Resource resource)
-
toEObject
protected com.google.common.base.Optional<org.eclipse.emf.ecore.EObject> toEObject(java.lang.Object object)
-
-