Interface IMatcherConfig

All Known Implementing Classes:
MatcherConfig

public interface IMatcherConfig
The implementation of this interface can be used to change the behaviour of RegExMatcher.
Since:
2.11.0
  • Method Details

    • getPatternFlags

      int getPatternFlags()
      Must return the Pattern flags to use.
      Returns:
      The Pattern flags
    • getMatchLogic

      Function<Matcher,Boolean> getMatchLogic()
      The logic to be used for matching the regex.
      Returns:
      The matching logic.
    • getMatchFoundLogic

      Consumer<Matcher> getMatchFoundLogic()
      The logic executed when the pattern was found.
      Returns:
      The found logic.
    • getNoMatchFoundLogic

      Consumer<Matcher> getNoMatchFoundLogic()
      The logic executed when the pattern was not found.
      Returns:
      The not found logic
    • getExceptionLogic

      Consumer<RuntimeException> getExceptionLogic()
      The logic for capturing exception RuntimeException.
      Returns:
      The exception logic.