DotPosition

data class DotPosition(    val line: Int,     val characterInLine: Int,     val offset: Int) : DocumentPosition

The DocumentPosition of the Caret.getDot; the rightmost position.

Author

Richard Arriaga

Constructors

Link copied to clipboard
fun DotPosition(    line: Int,     characterInLine: Int,     offset: Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun containedInElement(document: Document): Element

Answer the Element inside which this DocumentPosition resides.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun writeTo(writer: JSONWriter)

Properties

Link copied to clipboard
open override val characterInLine: Int

The 0-based character position within the line.

Link copied to clipboard
val characterInLineOneBased: Int

The 1-based character position within the lineOneBased.

Link copied to clipboard
open override val line: Int

The 0-based line number of this DocumentPosition.

Link copied to clipboard
val lineOneBased: Int

The 1-based line number of this DocumentPosition.

Link copied to clipboard
open override val offset: Int

The 0-based character position relative to the start of the document.