FunctionsThatStructureFilter

Trait interface for structural, parameter, return type and declaration location filtering on functions.

Inheritors

Properties

Link copied to clipboard

The underlying FunctionsRuleBuilder used to accumulate function filtering rules.

Functions

Link copied to clipboard

Filters functions that are extension functions.

Link copied to clipboard

Filters functions that are member functions within a class or object.

Link copied to clipboard

Filters functions that are top-level declarations.

Link copied to clipboard
open infix fun belongToClass(className: String): FunctionsRuleBuilder

Filters functions declared within a class matching className.

open infix fun belongToClass(type: KClass<*>): FunctionsRuleBuilder

Filters functions declared within class type.

Link copied to clipboard

Filters functions that are member functions within a class or object.

Link copied to clipboard

Filters functions that are top-level declarations.

Link copied to clipboard

Filters functions having at least one parameter type matching any in types.

open fun haveAnyParameterType(first: KClass<*>, vararg additional: KClass<*>): FunctionsRuleBuilder

Filters functions having at least one parameter type matching first or any in additional.

Link copied to clipboard
open infix fun haveExtensionReceiver(receiverTypeFqName: String): FunctionsRuleBuilder

Filters functions that have an extension receiver matching receiverTypeFqName.

Filters functions that have an extension receiver of type kClass.

Link copied to clipboard

Filters functions that take no parameters.

Link copied to clipboard
open infix fun haveParameterCount(predicate: (Int) -> Boolean): FunctionsRuleBuilder

Filters functions whose parameter count satisfies predicate.

Filters functions taking exactly count parameters.

Link copied to clipboard

Filters functions having at least one parameter matching any type in types.

open infix fun haveParameterOf(typeFqName: String): FunctionsRuleBuilder

Filters functions having at least one parameter matching type typeFqName.

open infix fun haveParameterOf(kClass: KClass<*>): FunctionsRuleBuilder

Filters functions having at least one parameter of type kClass.

Link copied to clipboard

Filters functions whose parameter types exactly match types in order and count.

open fun haveParameterTypes(first: KClass<*>, vararg additional: KClass<*>): FunctionsRuleBuilder

Filters functions whose parameter types exactly match first and additional classes in order and count.

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

Filters functions having return type matching any in typeFqNames.

open infix fun haveReturnType(typeFqName: String): FunctionsRuleBuilder

Filters functions having return type matching typeFqName.

open infix fun haveReturnType(type: KClass<*>): FunctionsRuleBuilder

Filters functions having return type matching type.

Link copied to clipboard
open infix fun notHaveParameterOf(typeFqName: String): FunctionsRuleBuilder

Filters functions not having any parameter matching type typeFqName.

Filters functions not having any parameter of type type.

Link copied to clipboard
open infix fun notHaveReturnType(typeFqName: String): FunctionsRuleBuilder

Filters functions not having return type matching typeFqName.

Filters functions not having return type matching type.