Class JSRegexValidator
java.lang.Object
com.oracle.truffle.regex.tregex.parser.JSRegexValidator
- All Implemented Interfaces:
RegexValidator
-
Constructor Summary
ConstructorsConstructorDescriptionJSRegexValidator(RegexLanguage language, RegexSource source, CompilationBuffer compilationBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate()Checks the regular expression for syntax errors without building an AST.
-
Constructor Details
-
JSRegexValidator
public JSRegexValidator(RegexLanguage language, RegexSource source, CompilationBuffer compilationBuffer)
-
-
Method Details
-
validate
Description copied from interface:RegexValidatorChecks the regular expression for syntax errors without building an AST.- Specified by:
validatein interfaceRegexValidator- Throws:
RegexSyntaxException- when the pattern or the flags are not well-formed
-