public interface TextRange
InputFile.
A range is delimited by two TextPointer.
TextRange(TextPointer(1, 0), TextPointer(1, 1)) represents the first character at line 1TextRange(TextPointer(1, 0), TextPointer(1, 10)) represents the 10 first characters at line 1InputFile.newRange(int, int, int, int)| Modifier and Type | Method and Description |
|---|---|
TextPointer |
end()
End position of the range
|
boolean |
overlap(TextRange another)
Test if the current range has some common area with another range.
|
TextPointer |
start()
Start position of the range
|
TextPointer start()
TextPointer end()
Copyright © 2009–2017 SonarSource. All rights reserved.