public class DocumentFormattingParams extends java.lang.Object implements WorkDoneProgressParams
Constructor and Description |
---|
DocumentFormattingParams() |
DocumentFormattingParams(TextDocumentIdentifier textDocument,
FormattingOptions options) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
FormattingOptions |
getOptions()
The format options
|
TextDocumentIdentifier |
getTextDocument()
The document to format.
|
org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> |
getWorkDoneToken()
An optional token that a server can use to report work done progress.
|
int |
hashCode() |
void |
setOptions(FormattingOptions options)
The format options
|
void |
setTextDocument(TextDocumentIdentifier textDocument)
The document to format.
|
void |
setWorkDoneToken(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> workDoneToken)
An optional token that a server can use to report work done progress.
|
void |
setWorkDoneToken(java.lang.Integer workDoneToken) |
void |
setWorkDoneToken(java.lang.String workDoneToken) |
java.lang.String |
toString() |
public DocumentFormattingParams()
public DocumentFormattingParams(TextDocumentIdentifier textDocument, FormattingOptions options)
@Pure public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> getWorkDoneToken()
getWorkDoneToken
in interface WorkDoneProgressParams
public void setWorkDoneToken(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> workDoneToken)
setWorkDoneToken
in interface WorkDoneProgressParams
public void setWorkDoneToken(java.lang.String workDoneToken)
public void setWorkDoneToken(java.lang.Integer workDoneToken)
@Pure public TextDocumentIdentifier getTextDocument()
public void setTextDocument(TextDocumentIdentifier textDocument)
@Pure public FormattingOptions getOptions()
public void setOptions(FormattingOptions options)
@Pure public java.lang.String toString()
toString
in class java.lang.Object
@Pure public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Pure public int hashCode()
hashCode
in class java.lang.Object