Class TextDocumentItem
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.TextDocumentItem
An item to transfer a text document from the client to the server.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextDocumentItemCreates a new TextDocumentItem literal.booleanThe text document's language identifier.getText()The content of the opened text document.getUri()The text document's uri.intThe version number of this document (it will increase after each change, including undo/redo).inthashCode()setLanguageId(String languageId) setVersion(int version)
-
Method Details
-
getUri
The text document's uri. -
setUri
-
getLanguageId
The text document's language identifier. -
setLanguageId
-
getVersion
public int getVersion()The version number of this document (it will increase after each change, including undo/redo). -
setVersion
-
getText
The content of the opened text document. -
setText
-
equals
-
hashCode
public int hashCode() -
create
Creates a new TextDocumentItem literal.- Parameters:
uri- The document's uri.languageId- The document's language identifier.version- The document's version number.text- The document's text.
-