Package org.eclipse.lsp4j
Class LocationLink
- java.lang.Object
-
- org.eclipse.lsp4j.LocationLink
-
public class LocationLink extends java.lang.ObjectRepresents a link between a source and a target location.Since 3.14.0
-
-
Constructor Summary
Constructors Constructor Description LocationLink()LocationLink(java.lang.String targetUri, Range targetRange, Range targetSelectionRange)LocationLink(java.lang.String targetUri, Range targetRange, Range targetSelectionRange, Range originSelectionRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)RangegetOriginSelectionRange()Span of the origin of this link.RangegetTargetRange()The full target range of this link.RangegetTargetSelectionRange()The range that should be selected and revealed when this link is being followed, e.g the name of a function.java.lang.StringgetTargetUri()The target resource identifier of this link.inthashCode()voidsetOriginSelectionRange(Range originSelectionRange)Span of the origin of this link.voidsetTargetRange(Range targetRange)The full target range of this link.voidsetTargetSelectionRange(Range targetSelectionRange)The range that should be selected and revealed when this link is being followed, e.g the name of a function.voidsetTargetUri(java.lang.String targetUri)The target resource identifier of this link.java.lang.StringtoString()
-
-
-
Method Detail
-
getOriginSelectionRange
public Range getOriginSelectionRange()
Span of the origin of this link.Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.
-
setOriginSelectionRange
public void setOriginSelectionRange(Range originSelectionRange)
Span of the origin of this link.Used as the underlined span for mouse interaction. Defaults to the word range at the mouse position.
-
getTargetUri
public java.lang.String getTargetUri()
The target resource identifier of this link.
-
setTargetUri
public void setTargetUri(java.lang.String targetUri)
The target resource identifier of this link.
-
getTargetRange
public Range getTargetRange()
The full target range of this link. If the target for example is a symbol then target range is the range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to highlight the range in the editor.
-
setTargetRange
public void setTargetRange(Range targetRange)
The full target range of this link. If the target for example is a symbol then target range is the range enclosing this symbol not including leading/trailing whitespace but everything else like comments. This information is typically used to highlight the range in the editor.
-
getTargetSelectionRange
public Range getTargetSelectionRange()
The range that should be selected and revealed when this link is being followed, e.g the name of a function. Must be contained by thetargetRange. See alsoDocumentSymbol.range
-
setTargetSelectionRange
public void setTargetSelectionRange(Range targetSelectionRange)
The range that should be selected and revealed when this link is being followed, e.g the name of a function. Must be contained by thetargetRange. See alsoDocumentSymbol.range
-
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
-
-