Package org.eclipse.lsp4j
Class RenameParams
- java.lang.Object
-
- org.eclipse.lsp4j.TextDocumentPositionParams
-
- org.eclipse.lsp4j.TextDocumentPositionAndWorkDoneProgressParams
-
- org.eclipse.lsp4j.RenameParams
-
- All Implemented Interfaces:
WorkDoneProgressParams
public class RenameParams extends TextDocumentPositionAndWorkDoneProgressParams
The rename request is sent from the client to the server to do a workspace wide rename of a symbol.
-
-
Constructor Summary
Constructors Constructor Description RenameParams()RenameParams(TextDocumentIdentifier textDocument, Position position, java.lang.String newName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetNewName()The new name of the symbol.inthashCode()voidsetNewName(java.lang.String newName)The new name of the symbol.java.lang.StringtoString()-
Methods inherited from class org.eclipse.lsp4j.TextDocumentPositionAndWorkDoneProgressParams
getWorkDoneToken, setWorkDoneToken, setWorkDoneToken, setWorkDoneToken
-
Methods inherited from class org.eclipse.lsp4j.TextDocumentPositionParams
getPosition, getTextDocument, setPosition, setTextDocument
-
-
-
-
Constructor Detail
-
RenameParams
public RenameParams()
-
RenameParams
public RenameParams(TextDocumentIdentifier textDocument, Position position, java.lang.String newName)
-
-
Method Detail
-
getNewName
public java.lang.String getNewName()
The new name of the symbol. If the given name is not valid the request must return a ResponseError with an appropriate message set.
-
setNewName
public void setNewName(java.lang.String newName)
The new name of the symbol. If the given name is not valid the request must return a ResponseError with an appropriate message set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTextDocumentPositionAndWorkDoneProgressParams
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classTextDocumentPositionAndWorkDoneProgressParams
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTextDocumentPositionAndWorkDoneProgressParams
-
-