|
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(String regex)
Create a new regex replacement that does not replace the pattern matches by another string but deletes them. |
|
RegexReplacement(String regex,
String replacement)
Create a new regex replacement. |
|
| Method Summary | |
|---|---|
Pattern |
getPattern()
The pattern to match. |
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(String regex,
String replacement)
throws PatternSyntaxException
Pattern and
Matcher.
PatternSyntaxException - if the pattern has a syntax error
public RegexReplacement(String regex)
throws PatternSyntaxException
Pattern.
PatternSyntaxException - if the pattern has a syntax error| Method Detail |
|---|
public Pattern getPattern()
getPattern in interface IRegexReplacementpublic 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 | |||||||||