Class AbstractDefinitionParticipant
- java.lang.Object
-
- org.eclipse.lemminx.services.extensions.AbstractDefinitionParticipant
-
- All Implemented Interfaces:
IDefinitionParticipant
- Direct Known Subclasses:
DTDDefinitionParticipant,EntitiesDefinitionParticipant,RNGDefinitionParticipant,XMLReferencesDefinitionParticipant,XSDDefinitionParticipant
public abstract class AbstractDefinitionParticipant extends Object implements IDefinitionParticipant
Abstract class for definition.- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description AbstractDefinitionParticipant()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoFindDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Find the definitionvoidfindDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Find definition.protected abstract booleanmatch(DOMDocument document)Returns true if the definition support is applicable for the given document and false otherwise.
-
-
-
Method Detail
-
findDefinition
public final void findDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Description copied from interface:IDefinitionParticipantFind definition.- Specified by:
findDefinitionin interfaceIDefinitionParticipant
-
match
protected abstract boolean match(DOMDocument document)
Returns true if the definition support is applicable for the given document and false otherwise.- Parameters:
document-- Returns:
- true if the definition support is applicable for the given document and false otherwise.
-
doFindDefinition
protected abstract void doFindDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Find the definition- Parameters:
request-locations-cancelChecker-
-
-