Package love.forte.simbot.filter
See: Description
-
Interface Summary Interface Description FilterParameterMatcher 动态参数匹配器,动态参数的规则为 `{{name[,regex]}}`. FilterParameters 过滤器动态参数获取器 AtDetection at检测器。用于判断bot是否被at了。 CodeAdder 用于 CacheableAtDetection 的缓存code添加器。 AtDetectionFactory AtDetection 工厂。 AtDetectionRegistrar AtDetection 注册器。 FilterManager 过滤器管理中心。 管理中心主要用于负责管理自定义过滤器以及构建注解过滤器。 FilterManagerBuilder FilterManager 构建器,用于注册并构建一个filter。 ListenerFilterAnnotationFactory 注解过滤器工厂。 FilterTargetManager FilterTargetProcessor 管理器。 FilterTargetProcessorChecker FilterTargetProcessor 检测器。 FilterTargetProcessor Filter的target处理器,同于根据 target
的值获取一个String
类型的值以进行过滤匹配。过滤器目标处理器 属于一种 处理器。Keyword 关键词参数。代表了对 love.forte.simbot.core.annotation.Filter. ListenerFilter 监听过滤器。过滤器属于 监听函数 的一种属性, 因此何时何地进行过滤匹配 应当由 监听函数 进行实现。since 2.2. AnnotatedListenerFilterProcessor 一个 Filter 的注解过滤器的处理器,同样也是一个过滤器。此过滤器能够得到其对应的 Filter 注解实例。 ListenerFilterRegistrar ListenerFilter 注册器。 KeywordMatcher Keyword 匹配器。提供一个消息实例与一个关键词,判断是否通过。 msg参数不会是空字符串。 StringMatcher 字符串匹配器 MostMatcher 有指定目标的多值匹配规则. MostTester 对多个测试器进行测试的测试器。 MostFilterMatcher 多值过滤器匹配器,用于判定当存在多个匹配函数的时候则匹配规则。 其规则类似 MostMatcher, 但是为了适应多种情况, 并没有对其进行继承。 -
Object Summary Object Description AlwaysAllowedAtDetection 总是允许的 AtDetection 实例。 AlwaysRefuseAtDetection 总是拒绝的 AtDetection 实例。 TextFilterTargetProcessor 通过 MsgGet.text 的值作为匹配规则。 MsgFilterTargetProcessor 通过 MessageGet.msg 的值作为匹配规则。 可能会不支持获取msg(例如非 MessageGet 实例 ),当不支持获取msg的时候返回null。 Checker 针对 ListenContextFilterTargetProcessor 的检测器实现。 DefaultChecker FilterTargetProcessorChecker 的无效化实例,一般在找不到可用解析器的时候才会使用此实例来提供异常信息。此实例的 check 永远会失败并会抛出异常。 DefaultProcessor DefaultProcessor 无效的实现,一般在找不到可用解析器的时候才会使用此实例来提供异常信息。此实例的 getTargetText 永远会失败并会抛出异常。 FilterTargets 为 love.forte.simbot.annotation.Filter.target 提供一些常量默认值。 Any All AnyNo None -
-
Annotation Summary Annotation Description ListenerFilterBuilderDSL -
Enum Summary Enum Description MatchType 对于一个消息的匹配类型。 MostMatchType 过滤器的多匹配类型,当存在多个可匹配值(filter), 则此函数指定一个多值的匹配规则。同时,MostMatchType 也是一个字符串的多元素匹配器 ,以及一个 多元素测试器.