Package org.eclipse.lsp4j
Class PrepareRenameResult
- java.lang.Object
-
- org.eclipse.lsp4j.PrepareRenameResult
-
public class PrepareRenameResult extends java.lang.ObjectOne 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
-
-
Constructor Summary
Constructors Constructor Description PrepareRenameResult()PrepareRenameResult(Range range, java.lang.String placeholder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetPlaceholder()A placeholder text of the string content to be renamed.RangegetRange()The range of the string to renameinthashCode()voidsetPlaceholder(java.lang.String placeholder)A placeholder text of the string content to be renamed.voidsetRange(Range range)The range of the string to renamejava.lang.StringtoString()
-
-
-
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:
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
-
-