PropertiesThat

Filter builder for selecting property declarations matching specific conditions.

Functions

Link copied to clipboard
fun allOf(vararg blocks: PropertiesThat.() -> Unit): PropertiesRuleBuilder

Filter or assertion criteria for all of.

Link copied to clipboard
fun anyOf(vararg blocks: PropertiesThat.() -> Unit): PropertiesRuleBuilder

Filter or assertion criteria for any of.

Link copied to clipboard

Filter or assertion criteria for are abstract.

Link copied to clipboard

Filters properties annotated with annotation type parameter T.

Filters properties annotated with annotation.

Link copied to clipboard

Filter or assertion criteria for are extension.

Link copied to clipboard

Filter or assertion criteria for are member.

Link copied to clipboard

Filter or assertion criteria for are open.

Link copied to clipboard

Filter or assertion criteria for are override.

Link copied to clipboard

Filter or assertion criteria for are top level.

Link copied to clipboard

Filter or assertion criteria for be const.

Link copied to clipboard

Filter or assertion criteria for be lateinit.

Link copied to clipboard

Filter or assertion criteria for be member.

Link copied to clipboard

Filter or assertion criteria for be top level.

Link copied to clipboard

Filter or assertion criteria for be val.

Link copied to clipboard

Filter or assertion criteria for be var.

Link copied to clipboard

Filters properties that depend on package containing classes.

Link copied to clipboard

Filters properties depending on package of T.

Link copied to clipboard

Filters properties that depend on packages matching patterns.

Link copied to clipboard

Restricts the rules to properties annotated with all of the specified annotations. Matches either simple names or FQNs.

Link copied to clipboard

Filters properties having all of the specified annotations.

Link copied to clipboard

Restricts the rules to properties containing all of the specified modifiers.

Link copied to clipboard
fun haveAnnotationOf(vararg annotationNames: String): PropertiesRuleBuilder
infix fun haveAnnotationOf(annotationNames: List<String>): PropertiesRuleBuilder

Restricts the rules to properties annotated with any of the specified annotations.

infix fun haveAnnotationOf(annotationName: String): PropertiesRuleBuilder

Restricts the rules to properties annotated with the specified annotation. Matches either the annotation's simple name or its FQN.

Link copied to clipboard

Filters properties having annotation specified by annotation type parameter T.

Filters properties having the specified annotation class.

Link copied to clipboard

Filters properties having annotation type parameter T.

Link copied to clipboard
fun haveAnnotationWithArgument(annotationName: String, argName: String?, argValue: String): PropertiesRuleBuilder

Filter or assertion criteria for have annotation with argument.

Link copied to clipboard

Filters properties having an annotation annotation with argument argName equal to argValue.

Link copied to clipboard

Restricts the rules to properties annotated with any of the specified annotations. Matches either simple names or FQNs.

Link copied to clipboard

Filters properties having any of the specified annotations.

Link copied to clipboard

Restricts the rules to properties containing any of the specified modifiers.

Link copied to clipboard

Restricts the rules to properties with any of the specified visibilities.

Link copied to clipboard
fun haveImportOf(vararg importFqNames: String): PropertiesRuleBuilder
infix fun haveImportOf(importFqName: String): PropertiesRuleBuilder
infix fun haveImportOf(importFqNames: List<String>): PropertiesRuleBuilder

Filter or assertion criteria for have import of.

Link copied to clipboard

Filters properties that have an import of type parameter T.

Link copied to clipboard

Filter or assertion criteria for have modifier.

Link copied to clipboard
infix fun haveName(predicate: (String) -> Boolean): PropertiesRuleBuilder
fun haveName(description: String, predicate: (String) -> Boolean): PropertiesRuleBuilder

Filter or assertion criteria for have name.

Link copied to clipboard

Filter or assertion criteria for have name ending with.

Link copied to clipboard

Filter or assertion criteria for have name matching.

Link copied to clipboard

Filter or assertion criteria for have name starting with.

Link copied to clipboard
fun haveType(vararg typeFqNames: String): PropertiesRuleBuilder
infix fun haveType(typeFqNames: List<String>): PropertiesRuleBuilder

Restricts the rules to properties with any of the specified types.

infix fun haveType(typeFqName: String): PropertiesRuleBuilder

Restricts the rules to properties with the specified type (simple or fully qualified).

@JvmName(name = "haveTypesByKClass")
infix fun haveType(types: List<KClass<*>>): PropertiesRuleBuilder

Filter or assertion criteria for have type.

Restricts the rules to properties with the specified raw type.

Link copied to clipboard

Restricts the rules to properties with the specified raw type.

Link copied to clipboard

Restricts the rules to properties with the specified visibility.

Link copied to clipboard
fun noneOf(vararg blocks: PropertiesThat.() -> Unit): PropertiesRuleBuilder

Filter or assertion criteria for none of.

Link copied to clipboard

Logical NOT operator for negating the next filter condition.

Link copied to clipboard

Filter or assertion criteria for not be internal.

Link copied to clipboard

Filter or assertion criteria for not be private.

Link copied to clipboard

Filter or assertion criteria for not be protected.

Link copied to clipboard

Filter or assertion criteria for not be public.

Link copied to clipboard

Filters properties not depending on package of T.

Filters properties not depending on package of type.

Link copied to clipboard

Filters properties that do not depend on packages matching patterns.

Link copied to clipboard

Filter or assertion criteria for not have annotation of.

Link copied to clipboard
infix fun notHaveImportOf(importFqName: String): PropertiesRuleBuilder

Filter or assertion criteria for not have import of.

Link copied to clipboard

Filters properties that do not have an import of type parameter T.

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

Filter or assertion criteria for not have name.

Link copied to clipboard

Filter or assertion criteria for not have name ending with.

Link copied to clipboard

Filter or assertion criteria for not have name matching.

Link copied to clipboard

Filter or assertion criteria for not have name starting with.

Link copied to clipboard

Filter or assertion criteria for not reside in a module.

Link copied to clipboard
fun notResideInAPackage(vararg packagePatterns: String): PropertiesRuleBuilder

Filter or assertion criteria for not reside in a package.

Link copied to clipboard

Filter or assertion criteria for not reside in module.

Link copied to clipboard

Filter or assertion criteria for not reside in modules.

Link copied to clipboard
fun resideInAModule(vararg modulePaths: String): PropertiesRuleBuilder

Filter or assertion criteria for reside in a module.

Link copied to clipboard
fun resideInAPackage(vararg packagePatterns: String): PropertiesRuleBuilder
infix fun resideInAPackage(packagePattern: String): PropertiesRuleBuilder
infix fun resideInAPackage(packagePatterns: List<String>): PropertiesRuleBuilder

Filter or assertion criteria for reside in a package.

Link copied to clipboard

Filter or assertion criteria for reside in module.

Link copied to clipboard
fun resideInModules(vararg modulePaths: String): PropertiesRuleBuilder

Filter or assertion criteria for reside in modules.

Link copied to clipboard

Filter or assertion criteria for reside in package of.

Link copied to clipboard

Filters properties residing in the package of type parameter T.

Filters properties residing in the package of type.

Link copied to clipboard

Filter or assertion criteria for satisfy.