Class SearchEngine
- java.lang.Object
-
- org.eclipse.lemminx.extensions.references.search.SearchEngine
-
public class SearchEngine extends Object
XML references search engine to collect attribute , text which matches XML references expressionXMLReferenceExpression.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description SearchEngine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchEnginegetInstance()voidsearch(SearchQuery query, IXMLReferenceCollector collector, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Perform the XML references search by using the given search query.Collection<ReferenceLink>searchLinks(DOMDocument document, XMLReferencesSettings settings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
-
-
-
Method Detail
-
getInstance
public static SearchEngine getInstance()
-
search
public final void search(SearchQuery query, IXMLReferenceCollector collector, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Perform the XML references search by using the given search query.- Parameters:
query- the search query.collector- the collector used to collect attribute, text nodes.cancelChecker- the cancel checker.
-
searchLinks
public Collection<ReferenceLink> searchLinks(DOMDocument document, XMLReferencesSettings settings, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
-
-