Package-level declarations

Types

Link copied to clipboard
data class AnnotationInfo(val type: KClass<out Annotation>, val typeName: String, val args: List<Any?>, val parameterNames: List<String>)

Holds metadata about a single annotation instance present on a method or parameter.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Aspect

Marks a class or object as an AspectK aspect.

Link copied to clipboard
annotation class Before(val target: KClass<out Annotation>, val inherits: Boolean = false)

Marks a function inside an Aspect-annotated class as before advice.

Link copied to clipboard
interface JoinPoint

Provides contextual information about an intercepted function call.

Link copied to clipboard
data class MethodParameter(val name: String, val type: KClass<*>, val typeName: String, val annotations: List<AnnotationInfo>, val isNullable: Boolean)

Describes a single parameter of an intercepted method.

Link copied to clipboard
data class MethodSignature(val methodName: String, val annotations: List<AnnotationInfo>, val parameter: List<MethodParameter>, val returnType: KClass<*>, val returnTypeName: String)

Compile-time metadata describing the signature of an intercepted method.