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