Class DocumentLink
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.DocumentLink
A document link is a range in a text document that links to an internal or external resource,
like another text document or a web site.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentLinkCreates a new DocumentLink literal.booleangetData()A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.getRange()The range this link applies to.The uri this link points to.The tooltip text when you hover over this link.inthashCode()setTooltip(String tooltip)
-
Method Details
-
getRange
The range this link applies to. -
setRange
-
getTarget
The uri this link points to. -
setTarget
-
getTooltip
The tooltip text when you hover over this link. If a tooltip is provided, is will be displayed in a string that includes instructions on how to trigger the link, such as `{0} (ctrl + click)`. The specific instructions vary depending on OS, user settings, and localization.- Since:
- 3.15.0
-
setTooltip
-
getData
A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest. -
setData
-
equals
-
hashCode
public int hashCode() -
create
Creates a new DocumentLink literal.
-