Class 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 Detail

      • DocumentRangeFormattingParams

        public DocumentRangeFormattingParams()
      • 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:
        getWorkDoneToken in interface WorkDoneProgressParams
      • 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 interface WorkDoneProgressParams
      • setWorkDoneToken

        public void setWorkDoneToken​(java.lang.String workDoneToken)
      • setWorkDoneToken

        public void setWorkDoneToken​(java.lang.Integer workDoneToken)
      • setTextDocument

        public void setTextDocument​(TextDocumentIdentifier textDocument)
        The document to format.
      • 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object