public interface TextLocation extends Location
Location for text, where line and column is the important thing to
keep track of. This location uses zero-indexed lines and columns.| Modifier and Type | Method and Description |
|---|---|
TextLocation |
copy()
Create a copy of this location.
|
int |
getColumn()
Get the column this location represents.
|
int |
getLine()
Get the line this location represents.
|
TextLocation |
moveTextIndex(CharSequence sequence)
Move the text index according to the given sequence of characters.
|
TextLocation |
moveTextIndex(CharSequence sequence,
int offset,
int length)
Move the text index according to the given sequence of characters.
|
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.
|
isAfter, isBefore, isSameOrAfter, isSameOrBefore, offset, text, toStringcompareToint getLine()
int getColumn()
TextLocation copy()
TextLocation moveTo(int line, int column)
line - column - TextLocation moveTextIndex(CharSequence sequence)
moveTextIndex in interface Locationsequence - TextLocation moveTextIndex(CharSequence sequence, int offset, int length)
moveTextIndex in interface Locationsequence - offset - length - Copyright © 2018. All rights reserved.