Package org.eclipse.lsp4j
Class SelectionRange
- java.lang.Object
-
- org.eclipse.lsp4j.SelectionRange
-
public class SelectionRange extends java.lang.Object
A selection range represents a part of a selection hierarchy. A selection range may have a parent selection range that contains it.Since 3.15.0
-
-
Constructor Summary
Constructors Constructor Description SelectionRange()
SelectionRange(Range range, SelectionRange parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SelectionRange
getParent()
The parent selection range containing this range.Range
getRange()
The range of this selection range.int
hashCode()
void
setParent(SelectionRange parent)
The parent selection range containing this range.void
setRange(Range range)
The range of this selection range.java.lang.String
toString()
-
-
-
Constructor Detail
-
SelectionRange
public SelectionRange()
-
SelectionRange
public SelectionRange(Range range, SelectionRange parent)
-
-
Method Detail
-
getRange
public Range getRange()
The range of this selection range.
-
setRange
public void setRange(Range range)
The range of this selection range.
-
getParent
public SelectionRange getParent()
The parent selection range containing this range. Therefore `parent.range` must containrange
.
-
setParent
public void setParent(SelectionRange parent)
The parent selection range containing this range. Therefore `parent.range` must containrange
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-