Class StringWithOffset

    • Constructor Summary

      Constructors 
      Constructor Description
      StringWithOffset​(java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      char charAt​(int index)  
      int getOffset()
      Retrieves the current state of the offset property.
      void incOffset()
      Increments the offset by one.
      void incOffset​(int amount)
      Increments the offset by the given amount.
      int length()  
      IMarkerFactory.IMarker mark()
      Creates a new marker.
      void setOffset​(int offset)
      Random access to modify the offset.
      java.lang.CharSequence subSequence​(int start, int end)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.CharSequence

        chars, codePoints, toString
    • Constructor Detail

      • StringWithOffset

        public StringWithOffset​(java.lang.String value)
    • Method Detail

      • incOffset

        public void incOffset​(int amount)
        Description copied from interface: ICharSequenceWithOffset
        Increments the offset by the given amount. Can be used to decrement the offset.
        Specified by:
        incOffset in interface ICharSequenceWithOffset
        Parameters:
        amount - the number of offset that should be shifted.
      • setOffset

        public void setOffset​(int offset)
        Description copied from interface: ICharSequenceWithOffset
        Random access to modify the offset. Can be set independently from the length of the char sequence.
        Specified by:
        setOffset in interface ICharSequenceWithOffset
        Parameters:
        offset - the new offset.
      • charAt

        public char charAt​(int index)
        Specified by:
        charAt in interface java.lang.CharSequence
      • length

        public int length()
        Specified by:
        length in interface java.lang.CharSequence
      • subSequence

        public java.lang.CharSequence subSequence​(int start,
                                                  int end)
        Specified by:
        subSequence in interface java.lang.CharSequence