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)
newWildCard - replacement for %newSingleMatch - replacement for _reserved - 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 © 2018 JBoss by Red Hat. All rights reserved.