Class AbstractReferenceParticipant
java.lang.Object
org.eclipse.lemminx.services.extensions.AbstractReferenceParticipant
- All Implemented Interfaces:
IReferenceParticipant
- Direct Known Subclasses:
DTDReferenceParticipant,RNGReferenceParticipant,XMLReferencesReferenceParticipant,XSDReferenceParticipant
Abstract class for reference participant.
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfindReference(DOMDocument document, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) protected abstract voidfindReferences(DOMNode node, org.eclipse.lsp4j.Position position, int offset, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the referencesprotected abstract booleanmatch(DOMDocument document) Returns true if the reference support is applicable for the given document and false otherwise.
-
Constructor Details
-
AbstractReferenceParticipant
public AbstractReferenceParticipant()
-
-
Method Details
-
findReference
public void findReference(DOMDocument document, org.eclipse.lsp4j.Position position, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) - Specified by:
findReferencein interfaceIReferenceParticipant
-
match
Returns true if the reference support is applicable for the given document and false otherwise.- Parameters:
document-- Returns:
- true if the reference support is applicable for the given document and false otherwise.
-
findReferences
protected abstract void findReferences(DOMNode node, org.eclipse.lsp4j.Position position, int offset, org.eclipse.lsp4j.ReferenceContext context, List<org.eclipse.lsp4j.Location> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the references- Parameters:
node-position-offset-locations-cancelChecker-
-