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 fun haveName(vararg names: String): FunctionsRuleBuilder
open infix fun haveName(names: List<String>): FunctionsRuleBuilder

Filters functions whose simple name is contained in names.

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 fun haveName(description: String, predicate: (String) -> Boolean): FunctionsRuleBuilder

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

Link copied to clipboard
open fun haveNameEndingWith(vararg suffixes: String): FunctionsRuleBuilder

Filters functions whose simple name ends with any of suffixes.

Filters functions whose simple name ends with suffix.

Link copied to clipboard
open fun haveNameMatching(vararg patterns: String): FunctionsRuleBuilder
open infix fun haveNameMatching(patterns: List<String>): FunctionsRuleBuilder

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

open infix fun haveNameMatching(pattern: String): FunctionsRuleBuilder

Filters functions whose simple name matches glob pattern.

Link copied to clipboard

Filters functions whose simple name starts with any of prefixes.

Filters functions whose simple name starts with prefix.

Link copied to clipboard
open fun notHaveName(vararg names: String): FunctionsRuleBuilder
open infix fun notHaveName(names: List<String>): FunctionsRuleBuilder

Filters functions whose simple name is not contained in names.

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.

Link copied to clipboard

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

Filters functions whose simple name does not end with suffix.

Link copied to clipboard
open fun notHaveNameMatching(vararg patterns: String): FunctionsRuleBuilder

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

Filters functions whose simple name does not match glob pattern.

Link copied to clipboard

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

Filters functions whose simple name does not start with prefix.