org.slf4j.migrator.line
Class MultiGroupConversionRule
java.lang.Object
org.slf4j.migrator.line.MultiGroupConversionRule
- All Implemented Interfaces:
- ConversionRule
public class MultiGroupConversionRule
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiGroupConversionRule
public MultiGroupConversionRule(Pattern pattern)
getPattern
public Pattern getPattern()
- Specified by:
getPattern
in interface ConversionRule
addReplacement
public void addReplacement(int groupIndex,
String replacement)
getReplacement
public String getReplacement(int groupIndex)
replace
public String replace(Matcher matcher)
- Description copied from interface:
ConversionRule
- Given replacement rules, replace each capturing group in matcher's pattern
- Specified by:
replace
in interface ConversionRule
- Returns:
- String
getAdditionalLine
public 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 interface ConversionRule
- Returns:
- String
Copyright © 2005-2013 JBoss by Red Hat. All Rights Reserved.