Package org.eclipse.lsp4j
Class DocumentFormattingParams
- java.lang.Object
-
- org.eclipse.lsp4j.DocumentFormattingParams
-
- All Implemented Interfaces:
WorkDoneProgressParams
public class DocumentFormattingParams extends java.lang.Object implements WorkDoneProgressParams
The document formatting request is sent from the server to the client to format a whole document.
-
-
Constructor Summary
Constructors Constructor Description DocumentFormattingParams()
DocumentFormattingParams(TextDocumentIdentifier textDocument, FormattingOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
FormattingOptions
getOptions()
The format optionsTextDocumentIdentifier
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 optionsvoid
setTextDocument(TextDocumentIdentifier textDocument)
The document to format.void
setWorkDoneToken(java.lang.Integer workDoneToken)
void
setWorkDoneToken(java.lang.String workDoneToken)
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.java.lang.String
toString()
-
-
-
Constructor Detail
-
DocumentFormattingParams
public DocumentFormattingParams()
-
DocumentFormattingParams
public DocumentFormattingParams(TextDocumentIdentifier textDocument, FormattingOptions options)
-
-
Method Detail
-
getWorkDoneToken
public 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.- Specified by:
getWorkDoneToken
in interfaceWorkDoneProgressParams
-
setWorkDoneToken
public 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.- Specified by:
setWorkDoneToken
in interfaceWorkDoneProgressParams
-
setWorkDoneToken
public void setWorkDoneToken(java.lang.String workDoneToken)
-
setWorkDoneToken
public void setWorkDoneToken(java.lang.Integer workDoneToken)
-
getTextDocument
public TextDocumentIdentifier getTextDocument()
The document to format.
-
setTextDocument
public void setTextDocument(TextDocumentIdentifier textDocument)
The document to format.
-
getOptions
public FormattingOptions getOptions()
The format options
-
setOptions
public void setOptions(FormattingOptions options)
The format options
-
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
-
-