Package org.eclipse.lsp4j
Class InsertReplaceEdit
- java.lang.Object
-
- org.eclipse.lsp4j.InsertReplaceEdit
-
public class InsertReplaceEdit extends java.lang.Object
A special text edit to provide an insert and a replace operation.Since 3.16.0
-
-
Constructor Summary
Constructors Constructor Description InsertReplaceEdit()
InsertReplaceEdit(java.lang.String newText, Range insert, Range replace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Range
getInsert()
The range if the insert is requestedjava.lang.String
getNewText()
The string to be inserted.Range
getReplace()
The range if the replace is requested.int
hashCode()
void
setInsert(Range insert)
The range if the insert is requestedvoid
setNewText(java.lang.String newText)
The string to be inserted.void
setReplace(Range replace)
The range if the replace is requested.java.lang.String
toString()
-
-
-
Method Detail
-
getNewText
public java.lang.String getNewText()
The string to be inserted.
-
setNewText
public void setNewText(java.lang.String newText)
The string to be inserted.
-
getInsert
public Range getInsert()
The range if the insert is requested
-
setInsert
public void setInsert(Range insert)
The range if the insert is requested
-
getReplace
public Range getReplace()
The range if the replace is requested.
-
setReplace
public void setReplace(Range replace)
The range if the replace is requested.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-