public class RegexValidator extends Object
| Constructor and Description |
|---|
RegexValidator(RegexSource source,
RegexFlags flags,
RegexOptions options) |
| Modifier and Type | Method and Description |
|---|---|
RegexFeatures |
getFeatures()
Returns the features used by the regular expression that was just validated.
|
Map<String,Integer> |
getNamedCaptureGroups() |
int |
getNumberOfCaptureGroups() |
void |
validate() |
static void |
validate(RegexSource source) |
public RegexValidator(RegexSource source, RegexFlags flags, RegexOptions options)
public static void validate(RegexSource source) throws RegexSyntaxException
RegexSyntaxExceptionpublic void validate()
throws RegexSyntaxException
RegexSyntaxExceptionpublic RegexFeatures getFeatures()
RegexValidator.validate() and should therefore only be accessed
then.public int getNumberOfCaptureGroups()