public interface MatchContext
| Modifier and Type | Method and Description |
|---|---|
java.util.regex.MatchResult |
getMatchResult()
Returns the match result to access group information.
|
boolean |
hasGroupMatch()
Checks if the match produced at least one group match.
|
boolean |
isMatched()
Checks if the match was successful.
|
java.lang.String |
translateName(java.lang.String input)
Translates the name if it contains placeholders with the matching groups.
|
boolean isMatched()
true if the match was successful, false
otherwise.java.util.regex.MatchResult getMatchResult()
java.lang.String translateName(java.lang.String input)
input - the input name that may contain placeholders.input
does not contain any placeholders.boolean hasGroupMatch()
true if at least one group is matched,
false otherwise.