AnnotationSelector

sealed interface AnnotationSelector(source)

Describes a composable selector used to match annotations.

Selectors can be combined using +, negated using unary -, or subtracted using - (which is equivalent to + (-other)).

Examples:

// all annotations except annotations named example.A and example.B
all - named("example.A", "example.B")

// just annotations named example.A and example.B
named("example.A", "example.B")

// all annotations except annotations with names matching "example.+" but including annotation example.A again
all - matches(Regex("example.+")) + named("example.A")

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator fun minus(other: AnnotationSelector): AnnotationSelector

Subtracts one selector from another.

Link copied to clipboard
open operator fun plus(other: AnnotationSelector): AnnotationSelector

Combines this selector with another selector.

Link copied to clipboard
open operator fun unaryMinus(): AnnotationSelector

Returns a selector that negates this selector.