public class JSRegexValidator extends Object implements RegexValidator
| Constructor and Description |
|---|
JSRegexValidator(RegexLanguage language,
RegexSource source,
CompilationBuffer compilationBuffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
validate()
Checks the regular expression for syntax errors without building an AST.
|
public JSRegexValidator(RegexLanguage language, RegexSource source, CompilationBuffer compilationBuffer)
public void validate()
throws RegexSyntaxException
RegexValidatorvalidate in interface RegexValidatorRegexSyntaxException - when the pattern or the flags are not well-formed