DictSegment class

词典树分段,表示词典树的一个分枝

Implemented types

Constructors

DictSegment(String nodeChar)

Properties

childrenArray List<DictSegment>?
getter/setter pair
childrenMap Map<String, DictSegment>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
nodeChar String
getter/setter pair
nodeState int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeSize int
getter/setter pair

Methods

compareTo(DictSegment o) int
实现Comparable接口
override
disableSegment(List<String> charArray) → void
屏蔽词典中的一个词
fillSegment(List<String> charArray, [int begin = 0, int? length, int enabled = 1]) → void
加载填充词典片段
getChildrenArray() List<DictSegment>
获取数组容器 线程同步方法
getChildrenMap() Map<String, DictSegment>
获取Map容器 线程同步方法
getNodeChar() String
hasNextNode() bool
lookforSegment(String keyChar, int create) DictSegment?
查找本节点下对应的keyChar的segment *
match(List<String> charArray, [int begin = 0, int? length, Hit? searchHit]) Hit
匹配词段
migrate(List<DictSegment> segmentArray, Map<String, DictSegment> segmentMap) → void
将数组中的segment迁移到Map中
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

charMap Map<String, String>
getter/setter pair

Constants

ARRAY_LENGTH_LIMIT → const int