Class PrepareRenameResult


  • public class PrepareRenameResult
    extends java.lang.Object
    One of the result types of the `textDocument/prepareRename` request. Provides the range of the string to rename and a placeholder text of the string content to be renamed.

    Since 3.12.0

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getPlaceholder()
      A placeholder text of the string content to be renamed.
      Range getRange()
      The range of the string to rename
      int hashCode()  
      void setPlaceholder​(java.lang.String placeholder)
      A placeholder text of the string content to be renamed.
      void setRange​(Range range)
      The range of the string to rename
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PrepareRenameResult

        public PrepareRenameResult()
      • PrepareRenameResult

        public PrepareRenameResult​(Range range,
                                   java.lang.String placeholder)
    • Method Detail

      • getRange

        public Range getRange()
        The range of the string to rename
      • setRange

        public void setRange​(Range range)
        The range of the string to rename
      • getPlaceholder

        public java.lang.String getPlaceholder()
        A placeholder text of the string content to be renamed.
      • setPlaceholder

        public void setPlaceholder​(java.lang.String placeholder)
        A placeholder text of the string content to be renamed.
      • 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