FunctionsThatNameFilter

Trait interface for name matching and naming pattern filtering on functions.

Inheritors

Properties

Link copied to clipboard

The underlying FunctionsRuleBuilder used to accumulate function filtering rules.

Functions

Link copied to clipboard
open infix fun haveName(predicate: (String) -> Boolean): FunctionsRuleBuilder

Filters functions whose simple name satisfies predicate.

open infix fun haveName(name: String): FunctionsRuleBuilder

Filters functions whose simple name equals name.

open infix fun haveName(names: List<String>): FunctionsRuleBuilder
open fun haveName(vararg names: String): FunctionsRuleBuilder

Filters functions whose simple name is contained in names.

open fun haveName(description: String, predicate: (String) -> Boolean): FunctionsRuleBuilder

Filters functions whose simple name satisfies predicate with a custom description.

Link copied to clipboard

Filters functions whose simple name ends with suffix.

open fun haveNameEndingWith(vararg suffixes: String): FunctionsRuleBuilder

Filters functions whose simple name ends with any of suffixes.

Link copied to clipboard
open infix fun haveNameMatching(pattern: String): FunctionsRuleBuilder

Filters functions whose simple name matches glob pattern.

open infix fun haveNameMatching(patterns: List<String>): FunctionsRuleBuilder
open fun haveNameMatching(vararg patterns: String): FunctionsRuleBuilder

Filters functions whose simple name matches any glob pattern in patterns.

Link copied to clipboard

Filters functions whose simple name starts with prefix.

Filters functions whose simple name starts with any of prefixes.

Link copied to clipboard
open infix fun notHaveName(predicate: (String) -> Boolean): FunctionsRuleBuilder

Filters functions whose simple name does not satisfy predicate.

open infix fun notHaveName(name: String): FunctionsRuleBuilder

Filters functions whose simple name does not equal name.

open infix fun notHaveName(names: List<String>): FunctionsRuleBuilder
open fun notHaveName(vararg names: String): FunctionsRuleBuilder

Filters functions whose simple name is not contained in names.

Link copied to clipboard

Filters functions whose simple name does not end with suffix.

Filters functions whose simple name does not end with any of suffixes.

Link copied to clipboard

Filters functions whose simple name does not match glob pattern.

open fun notHaveNameMatching(vararg patterns: String): FunctionsRuleBuilder

Filters functions whose simple name does not match any glob pattern in patterns.

Link copied to clipboard

Filters functions whose simple name does not start with prefix.

Filters functions whose simple name does not start with any of prefixes.