Package org.slf4j.migrator.line
Class MultiGroupConversionRule
java.lang.Object
org.slf4j.migrator.line.MultiGroupConversionRule
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReplacement
(int groupIndex, String replacement) Returns a non-null value if there should be an additional line following a match of this rule.getReplacement
(int groupIndex) Given replacement rules, replace each capturing group in matcher's pattern
-
Field Details
-
MAX_GROUPS
private static final int MAX_GROUPS- See Also:
-
pattern
-
replacementTable
-
-
Constructor Details
-
MultiGroupConversionRule
-
-
Method Details
-
getPattern
- Specified by:
getPattern
in interfaceConversionRule
-
addReplacement
-
getReplacement
-
replace
Description copied from interface:ConversionRule
Given replacement rules, replace each capturing group in matcher's pattern- Specified by:
replace
in interfaceConversionRule
- Parameters:
matcher
-- 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
-