Class RNCHoverRequest
java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.AbstractRNCRequest
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.hover.RNCHoverRequest
- All Implemented Interfaces:
ISharedSettingsRequest
Encapsulates all context needed to compute RNC hover information.
Created once per hover request, this class resolves the cursor offset, word
at the cursor, and document text. It also exposes client capabilities
(markdown support) via ISharedSettingsRequest.
-
Constructor Summary
ConstructorsConstructorDescriptionRNCHoverRequest(RNCDocument rncDocument, org.eclipse.lsp4j.Position position, SharedSettings sharedSettings) Creates a new hover request. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanSupportMarkupKind(String kind) Returnstrueif the client can support the given Markup kind for documentation andfalseotherwise.intgetWord()Methods inherited from class org.eclipse.lemminx.extensions.relaxng.grammar.rnc.AbstractRNCRequest
getRNCDocument, getSharedSettings, getText, getTextDocument, isSnippetsSupported
-
Constructor Details
-
Method Details
-
getOffset
public int getOffset()- Overrides:
getOffsetin classAbstractRNCRequest
-
getWord
-
canSupportMarkdown
public boolean canSupportMarkdown() -
canSupportMarkupKind
Description copied from interface:ISharedSettingsRequestReturnstrueif the client can support the given Markup kind for documentation andfalseotherwise.- Parameters:
kind- the markup kind- Returns:
trueif the client can support the given Markup kind for documentation andfalseotherwise.
-