java.lang.Object
xyz.ronella.trivial.handy.impl.MatcherConfig
- All Implemented Interfaces:
IMatcherConfig
The default implementation of IMatcherConfig.
- Since:
- 2.11.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe only class the can create an instance of MatcherConfig. -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance of MatcherConfigBuilderThe 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
public int getPatternFlags()Description copied from interface:IMatcherConfigMust return the Pattern flags to use.- Specified by:
getPatternFlagsin interfaceIMatcherConfig- Returns:
- The Pattern flags
-
getMatchLogic
Description copied from interface:IMatcherConfigThe logic to be used for matching the regex.- Specified by:
getMatchLogicin interfaceIMatcherConfig- Returns:
- The matching logic.
-
getMatchFoundLogic
Description copied from interface:IMatcherConfigThe logic executed when the pattern was found.- Specified by:
getMatchFoundLogicin interfaceIMatcherConfig- Returns:
- The found logic.
-
getNoMatchFoundLogic
Description copied from interface:IMatcherConfigThe logic executed when the pattern was not found.- Specified by:
getNoMatchFoundLogicin interfaceIMatcherConfig- Returns:
- The not found logic
-
getExceptionLogic
Description copied from interface:IMatcherConfigThe logic for capturing exception RuntimeException.- Specified by:
getExceptionLogicin interfaceIMatcherConfig- Returns:
- The exception logic.
-
getBuilder
Returns an instance of MatcherConfigBuilder- Returns:
- An instance of MatcherConfigBuilder
-