Class TextEdit
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.TextEdit
A text edit applicable to a text document.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextEditCreates a delete text edit.booleanThe string to be inserted.getRange()The range of the text document to be manipulated.inthashCode()static TextEditCreates a insert text edit.static TextEditCreates a replace text edit.setNewText(String newText)
-
Method Details
-
getRange
The range of the text document to be manipulated. To insert text into a document create a range where start === end. -
setRange
-
getNewText
The string to be inserted. For delete operations use an empty string. -
setNewText
-
equals
-
hashCode
public int hashCode() -
replace
Creates a replace text edit.- Parameters:
range- The range of text to be replaced.newText- The new text.
-
insert
Creates a insert text edit.- Parameters:
position- The position to insert the text at.newText- The text to be inserted.
-
del
Creates a delete text edit.- Parameters:
range- The range of text to be deleted.
-