ExpressionMatch

data class ExpressionMatch(expression: String, mode: ExpressionMatch.MatchMode, caseSensitive: Boolean)

Construct an Expression match with the given parameters

Parameters

expression

A phrase, wildcard expression, or regular expression

mode

Expression matching mode @see ExpressionMatch.MatchMode

caseSensitive

If true, match case-sensitively, otherwise ignore case when matching

Constructors

Link copied to clipboard
fun ExpressionMatch(expression: String, mode: ExpressionMatch.MatchMode, caseSensitive: Boolean)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
enum MatchMode : Enum<ExpressionMatch.MatchMode>

Functions

Link copied to clipboard
fun isEmpty(): Boolean
Link copied to clipboard
fun match(content: String, matchEmpty: Boolean = false): Boolean

Properties

Link copied to clipboard
val caseSensitive: Boolean
Link copied to clipboard
val expression: String
Link copied to clipboard
val mode: ExpressionMatch.MatchMode