Subject

@Serializable
sealed interface Subject

Sealed hierarchy representing a target element or subject of an architectural rule.

Inheritors

Types

Link copied to clipboard
@Serializable
data class ClassSubject(val fqName: String, val simpleName: String, val location: SourceLocation? = null) : Subject

Subject representing a Kotlin class, interface, object, or enum.

Link copied to clipboard
@Serializable
data class CustomSubject(val name: String, val location: SourceLocation? = null) : Subject

Custom or generic subject type for arbitrary rule targets.

Link copied to clipboard
@Serializable
data class FunctionSubject(val fqName: String, val location: SourceLocation? = null) : Subject

Subject representing a Kotlin function or method declaration.

Link copied to clipboard
@Serializable
data class ModuleSubject(val path: String, val location: SourceLocation? = null) : Subject

Subject representing a Gradle module or project.

Properties

Link copied to clipboard
abstract val location: SourceLocation?

The optional source location where the subject is declared in the codebase.

Link copied to clipboard
abstract val name: String

The human-readable name or identifier of the subject (e.g. FQCN, module path, function name).