public abstract class AbstractCharScan extends Object implements ICharsScan
| 构造器和说明 |
|---|
AbstractCharScan() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
addMatchItem(CharsScanMatchItem item)
添加匹配元素
|
void |
clear()
清空
|
protected void |
clearBuffer()
清空当前的 buffer
使用场景:如果一个已经匹配,可以考虑清空其他的信息。
|
protected StringBuilder |
getBuffer()
获取缓存,调整为方法,便于后续改为 threadLocal
|
List<CharsScanMatchItem> |
getMatchList()
获取所有匹配的列表
|
boolean |
isPreCharMatchCondition() |
void |
setPreCharMatchCondition(boolean preCharMatchCondition) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitscangetPrioritygetScanTypepublic boolean isPreCharMatchCondition()
public void setPreCharMatchCondition(boolean preCharMatchCondition)
protected StringBuilder getBuffer()
protected void clearBuffer()
public List<CharsScanMatchItem> getMatchList()
ICharsScangetMatchList 在接口中 ICharsScanprotected void addMatchItem(CharsScanMatchItem item)
item - 元素public void clear()
ICharsLifecycleclear 在接口中 ICharsLifecycleCopyright © 2023. All rights reserved.