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()
ICharSequenceWithOffset
getOffset
in interface ICharSequenceWithOffset
public void incOffset()
ICharSequenceWithOffset
incOffset
in interface ICharSequenceWithOffset
public void incOffset(int amount)
ICharSequenceWithOffset
incOffset
in interface ICharSequenceWithOffset
amount
- the number of offset that should be shifted.public void setOffset(int offset)
ICharSequenceWithOffset
setOffset
in interface ICharSequenceWithOffset
offset
- the new offset.public char charAt(int index)
charAt
in interface java.lang.CharSequence
public int length()
length
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public IMarkerFactory.IMarker mark()
IMarkerFactory
mark
in interface IMarkerFactory