public static class MatchCriteria.PatternTranslator extends Object
Utility to convert the pattern into a different match syntax
| Constructor and Description |
|---|
PatternTranslator(char[] toReplace,
String[] replacements,
char[] reserved,
char newEscape,
int flags) |
| Modifier and Type | Method and Description |
|---|---|
String |
getPatternString(String pattern,
char escape) |
Pattern |
translate(String pattern,
char escape) |
public PatternTranslator(char[] toReplace,
String[] replacements,
char[] reserved,
char newEscape,
int flags)
toReplace - meta characters to replacereplacements - the replacements for the meta charactersreserved - sorted array of reserved chars in the new match syntaxnewEscape - escape char in the new syntaxpublic Pattern translate(String pattern, char escape) throws ExpressionEvaluationException
ExpressionEvaluationExceptionpublic String getPatternString(String pattern, char escape) throws ExpressionEvaluationException
ExpressionEvaluationExceptionCopyright © 2019. All rights reserved.