Class Range
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.Range
A range in a text document expressed as (zero-based) start and end positions.
If you want to specify a range that contains a line including the line ending character(s) then
use an end position denoting the start of the next line. For example: ```ts { start: { line: 5,
character: 23 } end : { line 6, character : 0 } } ```
-
Method Details
-
getStart
The range's start position. -
setStart
-
getEnd
The range's end position. -
setEnd
-
equals
-
hashCode
public int hashCode() -
create
Create a new Range liternal.- Parameters:
start- The range's start position.end- The range's end position.
-
create
public static Range create(Integer startLine, Integer startCharacter, Integer endLine, Integer endCharacter) Create a new Range liternal.- Parameters:
startLine- The start line number.startCharacter- The start character.endLine- The end line number.endCharacter- The end character.
-
create
-