| Package | Description |
|---|---|
| se.l4.lect.location |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TextOffsetLocation
Location representing an offset and a text location in the source.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MutableTextLocation
Mutable
TextLocation for use in cases where line and column is
important. |
class |
MutableTextOffsetLocation
Mutable
TextOffsetLocation for use in cases where both offset, line
and column is important. |
| Modifier and Type | Method and Description |
|---|---|
TextLocation |
TextLocation.copy()
Create a copy of this location.
|
TextLocation |
MutableTextLocation.copyFrom(TextLocation location) |
TextLocation |
TextLocation.moveTextIndex(CharSequence sequence)
Move the text index according to the given sequence of characters.
|
TextLocation |
TextLocation.moveTextIndex(CharSequence sequence,
int offset,
int length)
Move the text index according to the given sequence of characters.
|
TextLocation |
TextLocation.moveTo(int line,
int column)
Move the line and column of this location, returning either itself if
utable or a copy if this instance is immutable.
|
static TextLocation |
Location.text(int offset,
int line,
int column)
Quickly create a new
MutableTextOffsetLocation. |
| Modifier and Type | Method and Description |
|---|---|
TextLocation |
MutableTextLocation.copyFrom(TextLocation location) |
Copyright © 2018. All rights reserved.