A C D G I M S W 

A

addWord(String) - 类 中的方法cn.hutool.dfa.WordTree
添加单词,使用默认类型
addWords(Collection<String>) - 类 中的方法cn.hutool.dfa.WordTree
增加一组单词
addWords(String...) - 类 中的方法cn.hutool.dfa.WordTree
增加一组单词

C

cn.hutool.dfa - 程序包 cn.hutool.dfa
DFA全称为:Deterministic Finite Automaton,即确定有穷自动机。
containsSensitive(String) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
是否包含敏感词
containsSensitive(Object) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
是否包含敏感词

D

DEFAULT_SEPARATOR - 类 中的静态变量cn.hutool.dfa.SensitiveUtil
 

G

getFindedAllSensitive(String) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
查找敏感词,返回找到的所有敏感词
getFindedAllSensitive(String, boolean, boolean) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
查找敏感词,返回找到的所有敏感词
密集匹配原则:假如关键词有 ab,b,文本是abab,将匹配 [ab,b,ab]
贪婪匹配(最长匹配)原则:假如关键字a,ab,最长匹配将匹配[a, ab]
getFindedAllSensitive(Object) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
查找敏感词,返回找到的所有敏感词
getFindedAllSensitive(Object, boolean, boolean) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
查找敏感词,返回找到的所有敏感词
密集匹配原则:假如关键词有 ab,b,文本是abab,将匹配 [ab,b,ab]
贪婪匹配(最长匹配)原则:假如关键字a,ab,最长匹配将匹配[a, ab]
getFindedFirstSensitive(String) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
查找敏感词,返回找到的第一个敏感词
getFindedFirstSensitive(Object) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
查找敏感词,返回找到的第一个敏感词

I

init(Collection<String>, boolean) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
初始化敏感词树
init(Collection<String>) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
初始化敏感词树
init(String, char, boolean) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
初始化敏感词树
init(String, boolean) - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
初始化敏感词树,使用逗号分隔每个单词
isInited() - 类 中的静态方法cn.hutool.dfa.SensitiveUtil
 
isMatch(String) - 类 中的方法cn.hutool.dfa.WordTree
指定文本是否包含树中的词
isNotStopChar(char) - 类 中的静态方法cn.hutool.dfa.StopChar
是否为合法字符(待处理字符)
isStopChar(char) - 类 中的静态方法cn.hutool.dfa.StopChar
判断指定的词是否是不处理的词。

M

match(String) - 类 中的方法cn.hutool.dfa.WordTree
获得第一个匹配的关键字
matchAll(String) - 类 中的方法cn.hutool.dfa.WordTree
找出所有匹配的关键字
matchAll(String, int) - 类 中的方法cn.hutool.dfa.WordTree
找出所有匹配的关键字
matchAll(String, int, boolean, boolean) - 类 中的方法cn.hutool.dfa.WordTree
找出所有匹配的关键字
密集匹配原则:假如关键词有 ab,b,文本是abab,将匹配 [ab,b,ab]
贪婪匹配(最长匹配)原则:假如关键字a,ab,最长匹配将匹配[a, ab]

S

SensitiveUtil - cn.hutool.dfa中的类
敏感词工具类
SensitiveUtil() - 类 的构造器cn.hutool.dfa.SensitiveUtil
 
STOP_WORD - 类 中的静态变量cn.hutool.dfa.StopChar
不需要处理的词,如标点符号、空格等
StopChar - cn.hutool.dfa中的类
过滤词及一些简单处理
StopChar() - 类 的构造器cn.hutool.dfa.StopChar
 

W

WordTree - cn.hutool.dfa中的类
DFA(Deterministic Finite Automaton 确定有穷自动机) DFA单词树(以下简称单词树),常用于在某大段文字中快速查找某几个关键词是否存在。
WordTree() - 类 的构造器cn.hutool.dfa.WordTree
默认构造
A C D G I M S W 

Copyright © 2019. All rights reserved.