|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.string.RegexReplacementProcessor
public class RegexReplacementProcessor
This class allows the application of multiplex IRegexReplacement
s to
a string.
Constructor Summary | |
---|---|
RegexReplacementProcessor(java.util.List<IRegexReplacement> expressions)
Create a new replacement processor. |
Method Summary | |
---|---|
java.lang.String |
process(java.lang.String text)
Apply replacements to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexReplacementProcessor(java.util.List<IRegexReplacement> expressions)
Method Detail |
---|
public java.lang.String process(java.lang.String text) throws java.util.regex.PatternSyntaxException
java.util.regex.PatternSyntaxException
- unfortunately method
Matcher.replaceAll(java.lang.String)
throws an
IndexOutOfBoundsException
if a non-existent capturing
group is referenced. This method converts this exception to a
PatternSyntaxException
.
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |