- 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 Summary
Modifier and TypeMethodDescriptionThe logic for capturing exception RuntimeException.The logic executed when the pattern was found.The logic to be used for matching the regex.The logic executed when the pattern was not found.intMust return the Pattern flags to use.
-
Method Details
-
getPatternFlags
int getPatternFlags()Must return the Pattern flags to use.- Returns:
- The Pattern flags
-
getMatchLogic
The logic to be used for matching the regex.- Returns:
- The matching logic.
-
getMatchFoundLogic
The logic executed when the pattern was found.- Returns:
- The found logic.
-
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.
-