Package org.slf4j.migrator.line
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
-
Field Summary
Fields -
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
-
Field Details
-
pattern
-
replacementText
-
additionalLine
-
-
Constructor Details
-
SingleConversionRule
-
SingleConversionRule
-
-
Method Details
-
getPattern
- Specified by:
getPattern
in interfaceConversionRule
-
replace
Description copied from interface:ConversionRule
Given replacement rules, replace each capturing group in matcher's pattern- Specified by:
replace
in interfaceConversionRule
- Returns:
- String
-
getAdditionalLine
Description copied from interface:ConversionRule
Returns 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:
getAdditionalLine
in interfaceConversionRule
- Returns:
- String
-