接口 MatchAction


public interface MatchAction
The MatchAction interface provides the callback interface for actions bound to patterns in MatchActionProcessor. More often than not, you will want to create MatchAction instances as anonymous classes when adding pattern action pairs to a MatchActionProcessor instance.
从以下版本开始:
1.0
版本:
,
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    This method is called by MatchActionProcessor when it finds an associated pattern in a line of input.
  • 方法详细资料

    • processMatch

      void processMatch(MatchActionInfo matchInfo)
      This method is called by MatchActionProcessor when it finds an associated pattern in a line of input. Information pertaining to the matched line is included in the MatchActionInfo parameter.

      参数:
      matchInfo - The match information associated with the line matched by MatchActionProcessor.
      另请参阅: