Uses of Class
com.hankcs.algorithm.State
-
Uses of State in com.hankcs.algorithm
Fields in com.hankcs.algorithm declared as StateModifier and TypeFieldDescriptionprivate StateState.failurefail 函数,如果没有匹配到,则跳转到此状态。private StateAhoCorasickDoubleArrayTrie.Builder.rootStatethe root state of trieFields in com.hankcs.algorithm with type parameters of type StateMethods in com.hankcs.algorithm that return StateModifier and TypeMethodDescriptionState.failure()获取failure状态按照character转移,根节点转移失败会返回自己(永远不会返回null)private State转移到下一个状态State.nextStateIgnoreRootState(Character character) 按照character转移,任何节点转移失败会返回nullMethods in com.hankcs.algorithm that return types with arguments of type StateMethods in com.hankcs.algorithm with parameters of type StateModifier and TypeMethodDescriptionprivate voidAhoCorasickDoubleArrayTrie.Builder.constructOutput(State targetState) construct output tableprivate intfetch siblings of a parent nodevoidState.setFailure(State failState, int[] fail) 设置failure状态Method parameters in com.hankcs.algorithm with type arguments of type StateModifier and TypeMethodDescriptionprivate intfetch siblings of a parent nodeprivate intinsert the siblings to double array trie