Package org.eclipse.lsp4j
Class DocumentRangeFormattingParams
- java.lang.Object
-
- org.eclipse.lsp4j.DocumentRangeFormattingParams
-
- All Implemented Interfaces:
WorkDoneProgressParams
public class DocumentRangeFormattingParams extends java.lang.Object implements WorkDoneProgressParams
The document range formatting request is sent from the client to the server to format a given range in a document.
-
-
Constructor Summary
Constructors Constructor Description DocumentRangeFormattingParams()DocumentRangeFormattingParams(Range range)Deprecated.DocumentRangeFormattingParams(TextDocumentIdentifier textDocument, FormattingOptions options, Range range)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)FormattingOptionsgetOptions()The format optionsRangegetRange()The range to formatTextDocumentIdentifiergetTextDocument()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 optionsvoidsetRange(Range range)The range to formatvoidsetTextDocument(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
-
DocumentRangeFormattingParams
public DocumentRangeFormattingParams()
-
DocumentRangeFormattingParams
public DocumentRangeFormattingParams(TextDocumentIdentifier textDocument, FormattingOptions options, Range range)
-
DocumentRangeFormattingParams
@Deprecated public DocumentRangeFormattingParams(Range range)
Deprecated.
-
-
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
-
getRange
public Range getRange()
The range to format
-
setRange
public void setRange(Range range)
The range to format
-
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
-
-