de.unkrig.commons.text.pattern
Interface PatternUtil.Replacer

Enclosing class:
PatternUtil

public static interface PatternUtil.Replacer

Decides whether and how a match is to be replaced.


Method Summary
 java.lang.String getReplacement(java.lang.String context, java.lang.CharSequence match)
           
 

Method Detail

getReplacement

@Nullable
java.lang.String getReplacement(java.lang.String context,
                                         java.lang.CharSequence match)
Parameters:
context - Only for logging; e.g. the name of the file being transformed
Returns:
The replacement for this match, or null to indicate that this match should not be replaced
See Also:
Matcher.appendReplacement(StringBuffer, String)