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 booleanequals(java.lang.Object obj)FormattingOptionsgetOptions()The format optionsTextDocumentIdentifiergetTextDocument()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.inthashCode()voidsetOptions(FormattingOptions options)The format optionsvoidsetTextDocument(TextDocumentIdentifier textDocument)The document to format.voidsetWorkDoneToken(java.lang.Integer workDoneToken)voidsetWorkDoneToken(java.lang.String workDoneToken)voidsetWorkDoneToken(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.StringtoString()
-
-
-
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:
getWorkDoneTokenin 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:
setWorkDoneTokenin 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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-