Package com.mchange.v2.util
Class PatternReplacementMap
- java.lang.Object
-
- com.mchange.v2.util.PatternReplacementMap
-
public final class PatternReplacementMap extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PatternReplacementMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(java.util.regex.Pattern pattern, java.lang.String replacement)
java.lang.String
attemptReplace(java.lang.String testString)
java.util.Iterator
patterns()
void
removeMapping(java.util.regex.Pattern pattern)
int
size()
-
-
-
Method Detail
-
addMapping
public void addMapping(java.util.regex.Pattern pattern, java.lang.String replacement)
-
removeMapping
public void removeMapping(java.util.regex.Pattern pattern)
-
patterns
public java.util.Iterator patterns()
-
size
public int size()
-
attemptReplace
public java.lang.String attemptReplace(java.lang.String testString)
- Returns:
- null if there was no match, designated replacement otherwise.
-
-