Package-level declarations

Types

Link copied to clipboard

应用于 love.forte.simboot.annotation.Filter 注解上用来直接处理对应注解的函数。

Link copied to clipboard

应用于 @Filter 注解上的 Filter.by 参数,用于 通过参数构建一个当前 Filter 对应的过滤器实例。

Link copied to clipboard
annotation class Binder(val value: Array<String> = [], val scope: Binder.Scope = Scope.DEFAULT)

标记在一个函数上。假如这个函数不存在 Listener, 则说明这个函数是一个 love.forte.simboot.listener.ParameterBinderFactory 的函数体, 此时函数有且只能有一个参数 love.forte.simboot.listener.ParameterBinderFactory.Context, 且返回值必须为 love.forte.simboot.listener.ParameterBinderResult.

Link copied to clipboard

应用于 love.forte.simboot.annotation.Filter 注解上用来直接处理对应注解的函数。

Link copied to clipboard
annotation class ContentToNull(val priority: Int = PriorityConstant.FIRST)

EventListenerProcessingContext.textContent 进行前置处理, 使 textContent 结果始终为null。

Link copied to clipboard
annotation class ContentTrim(val priority: Int = PriorityConstant.FIRST)

EventListenerProcessingContext.textContent 进行前置处理, 清除前后空格(如果不为null的话)。

Link copied to clipboard
Link copied to clipboard
annotation class Filter(val value: String = "", val ifNullPass: Boolean = false, val matchType: MatchType = MatchType.REGEX_MATCHES, val targets: Filter.Targets = Targets(), val by: KClass<out AnnotationEventFilterFactory> = AnnotationEventFilterFactory::class)

@Listener 配合使用,会被解析为对应监听函数的通用属性过滤器。

Link copied to clipboard
annotation class Filters(val value: Filter, val multiMatchType: MultiFilterMatchType = MultiFilterMatchType.ANY)

多个 子过滤器 的容器。一个 Filters 最终会表现为一个汇总过滤器。

Link copied to clipboard
annotation class FilterValue(val value: String, val required: Boolean = true)

指定一个参数,此参数为通过 love.forte.simboot.filter.Keyword 解析而得到的动态参数提取器中的内容。

Link copied to clipboard
Link copied to clipboard
annotation class Interceptor(val value: String = "", val type: KClass<out AnnotatedEventListenerInterceptor> = AnnotatedEventListenerInterceptor::class, val priority: Int = PriorityConstant.NORMAL)

配合 Listener 使用,为一个监听函数指定一个或多个注解型监听函数拦截器.

Link copied to clipboard

Interceptor 的可重复容器.

Link copied to clipboard
annotation class Listen(val value: KClass<out Event>)

标记于一个函数上,代表它们所表示的监听函数应当要监听的事件类型集。

Link copied to clipboard
annotation class Listener(val id: String = "", val priority: Int = PriorityConstant.NORMAL, val async: Boolean = false)

标记一个函数为监听器/监听函数,并尝试自动检测其监听类型。

Link copied to clipboard
annotation class Listens(val value: Listen)
Link copied to clipboard
annotation class MessageValue(val isReversed: Boolean = false)
Link copied to clipboard
annotation class Preparer(val value: KClass<out ListenerPreparer>, val name: String = "", val priority: Int = PriorityConstant.NORMAL)

配合 @Listener 注解使用,标记需要在监听函数执行前进行的准备函数。

Link copied to clipboard
annotation class Preparers(val value: Preparer)

Preparer 的容器

Link copied to clipboard

Functions

Link copied to clipboard