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
ExpressionEvaluationException
public String getPatternString(String pattern, char escape) throws ExpressionEvaluationException
ExpressionEvaluationException
Copyright © 2018 JBoss by Red Hat. All rights reserved.