LazyRegex

class LazyRegex(key: String, default: String) : ReadOnlyProperty<Rule, Regex>

Deprecated

Use config property delegate with transformer instead.

LazyRegex class provides a lazy evaluation of a Regex pattern for usages inside Rules. It computes the value once when reaching the point of its usage and returns the same value when requested again.

key&default are used to retrieve a value from config.

Constructors

Link copied to clipboard
constructor(key: String, default: String)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Rule, property: KProperty<*>): Regex