Package org.eclipse.lsp4j
Class LinkedEditingRanges
- java.lang.Object
-
- org.eclipse.lsp4j.LinkedEditingRanges
-
public class LinkedEditingRanges extends java.lang.ObjectThe linked editing range response is sent from the server to the client to return the range of the symbol at the given position and all ranges that have the same content.Optionally a word pattern can be returned to describe valid contents.
Since 3.16.0
-
-
Constructor Summary
Constructors Constructor Description LinkedEditingRanges()LinkedEditingRanges(java.util.List<Range> ranges)LinkedEditingRanges(java.util.List<Range> ranges, java.lang.String wordPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<Range>getRanges()A list of ranges that can be renamed together.java.lang.StringgetWordPattern()An optional word pattern (regular expression) that describes valid contents for the given ranges.inthashCode()voidsetRanges(java.util.List<Range> ranges)A list of ranges that can be renamed together.voidsetWordPattern(java.lang.String wordPattern)An optional word pattern (regular expression) that describes valid contents for the given ranges.java.lang.StringtoString()
-
-
-
Method Detail
-
getRanges
public java.util.List<Range> getRanges()
A list of ranges that can be renamed together. The ranges must have identical length and contain identical text content. The ranges cannot overlap.
-
setRanges
public void setRanges(java.util.List<Range> ranges)
A list of ranges that can be renamed together. The ranges must have identical length and contain identical text content. The ranges cannot overlap.
-
getWordPattern
public java.lang.String getWordPattern()
An optional word pattern (regular expression) that describes valid contents for the given ranges. If no pattern is provided, the client configuration's word pattern will be used.
-
setWordPattern
public void setWordPattern(java.lang.String wordPattern)
An optional word pattern (regular expression) that describes valid contents for the given ranges. If no pattern is provided, the client configuration's word pattern will be used.
-
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
-
-