Class SingleConversionRule
java.lang.Object
org.slf4j.migrator.line.SingleConversionRule
- All Implemented Interfaces:
ConversionRule
This class represents a conversion rule It uses a Pattern and defines for
each capturing group of this Pattern a replacement text
- Author:
- jean-noelcharpin
-
Constructor Summary
ConstructorsConstructorDescriptionSingleConversionRule(Pattern pattern, String replacementText) SingleConversionRule(Pattern pattern, String replacementText, String additionalLine) -
Method Summary
Modifier and TypeMethodDescriptionReturns a non-null value if there should be an additional line following a match of this rule.Given replacement rules, replace each capturing group in matcher's pattern
-
Constructor Details
-
SingleConversionRule
-
SingleConversionRule
-
-
Method Details
-
getPattern
- Specified by:
getPatternin interfaceConversionRule
-
replace
Description copied from interface:ConversionRuleGiven replacement rules, replace each capturing group in matcher's pattern- Specified by:
replacein interfaceConversionRule- Parameters:
matcher-- Returns:
- String
-
getAdditionalLine
Description copied from interface:ConversionRuleReturns a non-null value if there should be an additional line following a match of this rule. In most cases this method returns null.- Specified by:
getAdditionalLinein interfaceConversionRule- Returns:
- String
-