public class SingleConversionRule extends Object implements ConversionRule
Constructor and Description |
---|
SingleConversionRule(Pattern pattern,
String replacementText) |
SingleConversionRule(Pattern pattern,
String replacementText,
String additionalLine) |
Modifier and Type | Method and Description |
---|---|
String |
getAdditionalLine()
Returns a non-null value if there should be an additional line
following a match of this rule.
|
Pattern |
getPattern() |
String |
replace(Matcher matcher)
Given replacement rules, replace each capturing group in matcher's pattern
|
public Pattern getPattern()
getPattern
in interface ConversionRule
public String replace(Matcher matcher)
ConversionRule
replace
in interface ConversionRule
public String getAdditionalLine()
ConversionRule
getAdditionalLine
in interface ConversionRule
Copyright © 2005-2015 QOS.ch. All Rights Reserved.