Slice

data class Slice(val key: String, val packages: Set<String>, val classes: List<ClassDeclaration>)

A group of packages sharing the same slice key, derived from a slice pattern's capture group.

Slices are the unit over which package-level relationships such as cycle-freedom and mutual isolation are asserted. For the pattern com.acme.(*).., the packages com.acme.payment and com.acme.payment.api both produce the key payment and therefore belong to the same slice.

Constructors

Link copied to clipboard
constructor(key: String, packages: Set<String>, classes: List<ClassDeclaration>)

Properties

Link copied to clipboard

Filter or assertion criteria for classes.

Link copied to clipboard
val key: String

Filter or assertion criteria for key.

Link copied to clipboard

Filter or assertion criteria for packages.