|
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.RegexReplacement
public class RegexReplacement
Default implementation of IRegexReplacement
.
Constructor Summary | |
---|---|
RegexReplacement(java.lang.String regex)
Create a new regex replacement that does not replace the pattern matches by another string but deletes them. |
|
RegexReplacement(java.lang.String regex,
java.lang.String replacement)
Create a new regex replacement. |
Method Summary | |
---|---|
java.util.regex.Pattern |
getPattern()
The pattern to match. |
java.lang.String |
getReplacement()
The replacement for the pattern. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexReplacement(java.lang.String regex, java.lang.String replacement) throws java.util.regex.PatternSyntaxException
Pattern
and
Matcher
.
java.util.regex.PatternSyntaxException
- if the pattern has a syntax errorpublic RegexReplacement(java.lang.String regex) throws java.util.regex.PatternSyntaxException
Pattern
.
java.util.regex.PatternSyntaxException
- if the pattern has a syntax errorMethod Detail |
---|
public java.util.regex.Pattern getPattern()
getPattern
in interface IRegexReplacement
public java.lang.String getReplacement()
getReplacement
in interface IRegexReplacement
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |