Package org.eclipse.lsp4j
Class DocumentLink
- java.lang.Object
-
- org.eclipse.lsp4j.DocumentLink
-
public class DocumentLink extends java.lang.ObjectA 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.
-
-
Constructor Summary
Constructors Constructor Description DocumentLink()DocumentLink(Range range)DocumentLink(Range range, java.lang.String target)DocumentLink(Range range, java.lang.String target, java.lang.Object data)DocumentLink(Range range, java.lang.String target, java.lang.Object data, java.lang.String tooltip)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.ObjectgetData()A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.RangegetRange()The range this link applies to.java.lang.StringgetTarget()The uri this link points to.java.lang.StringgetTooltip()The tooltip text when you hover over this link.inthashCode()voidsetData(java.lang.Object data)A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.voidsetRange(Range range)The range this link applies to.voidsetTarget(java.lang.String target)The uri this link points to.voidsetTooltip(java.lang.String tooltip)The tooltip text when you hover over this link.java.lang.StringtoString()
-
-
-
Constructor Detail
-
DocumentLink
public DocumentLink()
-
DocumentLink
public DocumentLink(Range range)
-
DocumentLink
public DocumentLink(Range range, java.lang.String target)
-
DocumentLink
public DocumentLink(Range range, java.lang.String target, java.lang.Object data)
-
DocumentLink
public DocumentLink(Range range, java.lang.String target, java.lang.Object data, java.lang.String tooltip)
-
-
Method Detail
-
getRange
public Range getRange()
The range this link applies to.
-
setRange
public void setRange(Range range)
The range this link applies to.
-
getTarget
public java.lang.String getTarget()
The uri this link points to. If missing a resolve request is sent later.
-
setTarget
public void setTarget(java.lang.String target)
The uri this link points to. If missing a resolve request is sent later.
-
getTooltip
public java.lang.String 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
public void setTooltip(java.lang.String tooltip)
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
-
getData
public java.lang.Object getData()
A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.Since 3.8.0
-
setData
public void setData(java.lang.Object data)
A data entry field that is preserved on a document link between a DocumentLinkRequest and a DocumentLinkResolveRequest.Since 3.8.0
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-