public class StringWithOffset extends java.lang.Object implements ICharSequenceWithOffset, IMarkerFactory
IMarkerFactory.IMarker| Constructor and Description |
|---|
StringWithOffset(java.lang.String value) |
| Modifier and Type | Method and 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) |
public int getOffset()
ICharSequenceWithOffsetgetOffset in interface ICharSequenceWithOffsetpublic void incOffset()
ICharSequenceWithOffsetincOffset in interface ICharSequenceWithOffsetpublic void incOffset(int amount)
ICharSequenceWithOffsetincOffset in interface ICharSequenceWithOffsetamount - the number of offset that should be shifted.public void setOffset(int offset)
ICharSequenceWithOffsetsetOffset in interface ICharSequenceWithOffsetoffset - the new offset.public char charAt(int index)
charAt in interface java.lang.CharSequencepublic int length()
length in interface java.lang.CharSequencepublic java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic IMarkerFactory.IMarker mark()
IMarkerFactorymark in interface IMarkerFactory