Class TextDocumentContentChangeEvent


  • public class TextDocumentContentChangeEvent
    extends java.lang.Object
    An event describing a change to a text document. If range and rangeLength are omitted the new text is considered to be the full content of the document.
    • Constructor Detail

      • TextDocumentContentChangeEvent

        public TextDocumentContentChangeEvent()
      • TextDocumentContentChangeEvent

        public TextDocumentContentChangeEvent​(java.lang.String text)
      • TextDocumentContentChangeEvent

        public TextDocumentContentChangeEvent​(Range range,
                                              java.lang.String text)
      • TextDocumentContentChangeEvent

        @Deprecated
        public TextDocumentContentChangeEvent​(Range range,
                                              java.lang.Integer rangeLength,
                                              java.lang.String text)
        Deprecated.
    • Method Detail

      • getRange

        public Range getRange()
        The range of the document that changed.
      • setRange

        public void setRange​(Range range)
        The range of the document that changed.
      • getRangeLength

        @Deprecated
        public java.lang.Integer getRangeLength()
        Deprecated.
        Use range instead.
        The length of the range that got replaced.
      • setRangeLength

        @Deprecated
        public void setRangeLength​(java.lang.Integer rangeLength)
        Deprecated.
        Use range instead.
        The length of the range that got replaced.
      • getText

        public java.lang.String getText()
        The new text of the range/document.
      • setText

        public void setText​(java.lang.String text)
        The new text of the range/document.
      • 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