booster / com.didiglobal.booster.transform.util / RegexCollector

RegexCollector

class RegexCollector : Collector<String>

Constructors

<init>

RegexCollector(regex: String)
RegexCollector(pattern: Pattern)
RegexCollector(regex: Regex)

Functions

accept

Determine the input is acceptable by this collector

fun accept(name: String): Boolean

collect

Returns the collected result, a non-null result means the matched input is out-of-date.

fun collect(name: String, data: () -> ByteArray): String