org.aitools.programd.util
Class Substituter
java.lang.Object
org.aitools.programd.util.Substituter
public class Substituter
- extends Object
Provides substitution utilities for all classes.
- Author:
- Noel Bush
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Substituter
public Substituter()
applySubstitutions
public static String applySubstitutions(Map<Pattern,String> substitutionMap,
String input)
- Performs replacements specified by the
substitutionMap
in the given input.
- Parameters:
substitutionMap - the map of substitutions to be performedinput - the string on which to perform the replacement
- Returns:
- the input with substitutions applied