| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Segment | |
| protected final @NotNull SegmentOffsetTree | |
| protected final @NotNull BasedSequence |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static @NotNull BasedOffsetTracker | Returns: based offset trackersequence which to create offset tracker sequence)Create a based offset tracker for the given sequence |
| public static @NotNull BasedOffsetTracker | Returns: based offset trackersequence which to create offset tracker sequence, @NotNull SegmentOffsetTree segment offset tree for the sequence segmentOffsetTree)Create a based offset tracker for the given sequence |
| public @NotNull OffsetInfo | Returns: information about the offset in this sequenceoffset in base sequence offset, boolean if true then offset represents the range [offset, offset) so it is located between character at offset-1 and character at offset
if false then offset represents the character at offset and the range [offset, offset+1) isEndOffset)Return the range of indices in the sequence of this based offset tracker that correspond to the given offset in the base sequence from which this sequence was derived. |
| public @NotNull SegmentOffsetTree | |
| public @NotNull BasedSequence | |
| public int | |
| public String |
| lastSegment | back to summary |
|---|---|
| private @Nullable Segment lastSegment
| |
| segmentOffsetTree | back to summary |
|---|---|
| protected final @NotNull SegmentOffsetTree segmentOffsetTree
| |
| sequence | back to summary |
|---|---|
| protected final @NotNull BasedSequence sequence
| |
| BasedOffsetTracker | back to summary |
|---|---|
| protected BasedOffsetTracker(@NotNull BasedSequence sequence, @NotNull SegmentTree segmentTree) | |
| BasedOffsetTracker | back to summary |
|---|---|
| protected BasedOffsetTracker(@NotNull BasedSequence sequence, @NotNull SegmentOffsetTree segmentOffsetTree) | |
| create | back to summary |
|---|---|
| public static @NotNull BasedOffsetTracker create(@NotNull BasedSequence sequence) Create a based offset tracker for the given sequence
| |
| create | back to summary |
|---|---|
| public static @NotNull BasedOffsetTracker create(@NotNull BasedSequence sequence, @NotNull SegmentOffsetTree segmentOffsetTree) Create a based offset tracker for the given sequence
| |
| getOffsetInfo | back to summary |
|---|---|
| public @NotNull OffsetInfo getOffsetInfo(int offset, boolean isEndOffset) Return the range of indices in the sequence of this based offset tracker that correspond to the given offset in the base sequence from which this sequence was derived. Note indented use is the recover the editing caret position from original text after some text transformation such as formatting, rendering HTML or paragraph wrapping.
| |
| getSegmentOffsetTree | back to summary |
|---|---|
public @NotNull SegmentOffsetTree getSegmentOffsetTree()
| |
| getSequence | back to summary |
|---|---|
public @NotNull BasedSequence getSequence()
| |
| size | back to summary |
|---|---|
| public int size() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |