Class DirtyRegion

    • Constructor Detail

      • DirtyRegion

        public DirtyRegion​(int offset,
                           int length,
                           String type,
                           String text)
        Creates a new dirty region.
        Parameters:
        offset - the offset within the document where the change occurred
        length - the length of the text within the document that changed
        type - the type of change that this region represents: INSERT REMOVE
        text - the substitution text
    • Method Detail

      • getOffset

        public int getOffset()
        Description copied from interface: IRegion
        Returns the offset of the region.
        Specified by:
        getOffset in interface IRegion
        Returns:
        the offset of the region
      • getLength

        public int getLength()
        Description copied from interface: IRegion
        Returns the length of the region.
        Specified by:
        getLength in interface IRegion
        Returns:
        the length of the region
      • getType

        public String getType()
        Description copied from interface: ITypedRegion
        Returns the content type of the region.
        Specified by:
        getType in interface ITypedRegion
        Returns:
        the content type of the region
      • getText

        public String getText()
        Returns the text that changed as part of the region change.
        Returns:
        the changed text