Package io.deephaven.web.shared.ide.lsp
Class Position
java.lang.Object
io.deephaven.web.shared.ide.lsp.Position
- All Implemented Interfaces:
Serializable
A position within a text document.
This is a JS-exposed model type (
dh.lsp.Position) that closely follows the Language Server Protocol position
shape.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this position.booleanintbooleangreaterOrEqual(Position end) Checks if this position is greater than or equal toend(lexicographically by line then character).booleangreaterThan(Position end) Checks if this position is strictly greater thanend(lexicographically by line then character).inthashCode()booleanlessOrEqual(Position start) Checks if this position is less than or equal tostart(lexicographically by line then character).booleanChecks if this position is strictly less thanstart(lexicographically by line then character).minus(int line, int character) plus(int line, int character) toString()
-
Field Details
-
line
public int lineThe zero-based line offset. -
character
public int characterThe zero-based character offset within the line.
-
-
Constructor Details
-
Position
public Position() -
Position
@JsIgnore public Position(int line, int character) -
Position
-
-
Method Details