QueryCursor

A class that is used for executing a query.

NOTE: If you're targeting Android SDK level < 33, you must use or close the instance to free up resources.

Since

0.25.0

expect class QueryCursor(source)

A class that is used for executing a query.

Since

0.25.0

actual class QueryCursor(source)

A class that is used for executing a query.

Since

0.25.0

actual class QueryCursor(source)

A class that is used for executing a query.

Since

0.25.0

Properties

Link copied to clipboard
@get:JvmName(name = "getByteRange")
@set:JvmName(name = "setByteRange")
actual var byteRange: UIntRange

The range of bytes in which the query will be executed.

expect var byteRange: UIntRange

The range of bytes in which the query will be executed.

@get:JvmName(name = "getByteRange")
@set:JvmName(name = "setByteRange")
actual var byteRange: UIntRange

The range of bytes in which the query will be executed.

actual var byteRange: UIntRange

The range of bytes in which the query will be executed.

Link copied to clipboard
@get:JvmName(name = "getContainingByteRange")
@set:JvmName(name = "setContainingByteRange")
actual var containingByteRange: UIntRange

The range of bytes within which all matches must be fully contained.

The range of bytes within which all matches must be fully contained.

@get:JvmName(name = "getContainingByteRange")
@set:JvmName(name = "setContainingByteRange")
actual var containingByteRange: UIntRange

The range of bytes within which all matches must be fully contained.

The range of bytes within which all matches must be fully contained.

Link copied to clipboard
@get:JvmName(name = "getContainingPointRange")
@set:JvmName(name = "setContainingPointRange")
actual var containingPointRange: ClosedRange<Point>

The range of points within which all matches must be fully contained.

The range of points within which all matches must be fully contained.

@get:JvmName(name = "getContainingPointRange")
@set:JvmName(name = "setContainingPointRange")
actual var containingPointRange: ClosedRange<Point>

The range of points within which all matches must be fully contained.

The range of points within which all matches must be fully contained.

Link copied to clipboard
@get:JvmName(name = "didExceedMatchLimit")
actual external val didExceedMatchLimit: Boolean

Check if the query exceeded its maximum number of in-progress matches during its last execution.

Check if the cursor exceeded its maximum number of in-progress matches during its last execution.

@get:JvmName(name = "didExceedMatchLimit")
actual external val didExceedMatchLimit: Boolean

Check if the query exceeded its maximum number of in-progress matches during its last execution.

Check if the query exceeded its maximum number of in-progress matches during its last execution.

Link copied to clipboard
@get:JvmName(name = "getMatchLimit")
@set:JvmName(name = "setMatchLimit")
actual external var matchLimit: UInt

The maximum number of in-progress matches.

expect var matchLimit: UInt

The maximum number of in-progress matches.

@get:JvmName(name = "getMatchLimit")
@set:JvmName(name = "setMatchLimit")
actual external var matchLimit: UInt

The maximum number of in-progress matches.

actual var matchLimit: UInt

The maximum number of in-progress matches.

Link copied to clipboard
@get:JvmName(name = "getMaxStartDepth")
@set:JvmName(name = "setMaxStartDepth")
actual var maxStartDepth: UInt

The maximum start depth for the query.

expect var maxStartDepth: UInt

The maximum start depth for the query.

@get:JvmName(name = "getMaxStartDepth")
@set:JvmName(name = "setMaxStartDepth")
actual var maxStartDepth: UInt

The maximum start depth for the query.

actual var maxStartDepth: UInt

The maximum start depth for the query.

Link copied to clipboard
@get:JvmName(name = "getPointRange")
@set:JvmName(name = "setPointRange")
actual var pointRange: ClosedRange<Point>

The range of points in which the query will be executed.

The range of points in which the query will be executed.

@get:JvmName(name = "getPointRange")
@set:JvmName(name = "setPointRange")
actual var pointRange: ClosedRange<Point>

The range of points in which the query will be executed.

The range of points in which the query will be executed.

Functions

Link copied to clipboard

Iterate over all the individual captures in the order that they appear.

expect fun captures(predicate: QueryPredicate.(QueryMatch) -> Boolean = { true }): Sequence<Pair<UInt, QueryMatch>>

Iterate over all the individual captures in the order that they appear.

Iterate over all the individual captures in the order that they appear.

Iterate over all the individual captures in the order that they appear.

Link copied to clipboard
open override fun close()
Link copied to clipboard

Iterate over all the matches in the order that they were found.

expect fun matches(predicate: QueryPredicate.(QueryMatch) -> Boolean = { true }): Sequence<QueryMatch>

Iterate over all the matches in the order that they were found.

Iterate over all the matches in the order that they were found.

Iterate over all the matches in the order that they were found.

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