/// <summary> /// 构造函数 /// </summary> /// <param name="match">匹配项</param> /// <param name="handler">处理器</param> public MatchInfo(Match match, TextHandler handler) { this.match = match; this.handler = handler; }
/// <summary> /// 注册处理器 /// </summary> /// <param name="handler">处理器</param> public void registerHandler(TextHandler handler) { handlers.Add(handler); }