Pred

sealed interface Pred(source)

Inheritors

Types

Link copied to clipboard
data class Eq(val value: String) : Pred
Link copied to clipboard
data class Has(val value: String) : Pred

Plain substring test; there is deliberately no regex.

Link copied to clipboard
data class In(val values: List<String>) : Pred
Link copied to clipboard
data class Ne(val value: String) : Pred
Link copied to clipboard
data class Present(val present: Boolean) : Pred
Link copied to clipboard
data class Starts(val value: String) : Pred
Link copied to clipboard
data class Ver(val ranges: List<String>, val groups: List<List<Bound>>, val scheme: VersionScheme) : Pred

Pred.Ver.ranges are OR-ed; the bounds inside one range (comma separated in text) are AND-ed.

Properties

Link copied to clipboard
abstract val key: String

Functions

Link copied to clipboard
abstract fun test(value: String?): Boolean?

null when the verdict cannot be known from value.

Link copied to clipboard
abstract fun toJson(): JsonValue