Class LinkedEditingRanges


  • public class LinkedEditingRanges
    extends java.lang.Object
    The 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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.util.List<Range> getRanges()
      A list of ranges that can be renamed together.
      java.lang.String getWordPattern()
      An optional word pattern (regular expression) that describes valid contents for the given ranges.
      int hashCode()  
      void setRanges​(java.util.List<Range> ranges)
      A list of ranges that can be renamed together.
      void setWordPattern​(java.lang.String wordPattern)
      An optional word pattern (regular expression) that describes valid contents for the given ranges.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LinkedEditingRanges

        public LinkedEditingRanges()
      • LinkedEditingRanges

        public LinkedEditingRanges​(java.util.List<Range> ranges)
      • LinkedEditingRanges

        public LinkedEditingRanges​(java.util.List<Range> ranges,
                                   java.lang.String wordPattern)
    • 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object