Class JavaRegexValidator
java.lang.Object
com.oracle.truffle.regex.tregex.parser.flavors.java.JavaRegexValidator
- All Implemented Interfaces:
RegexValidator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaRegexValidatorcreateValidator(RegexSource source, CompilationBuffer compilationBuffer) voidvalidate()Checks the regular expression for syntax errors without building an AST.
-
Constructor Details
-
JavaRegexValidator
public JavaRegexValidator(RegexSource source, CompilationBuffer compilationBuffer) throws RegexSyntaxException - Throws:
RegexSyntaxException
-
-
Method Details
-
createValidator
public static JavaRegexValidator createValidator(RegexSource source, CompilationBuffer compilationBuffer) throws RegexSyntaxException - Throws:
RegexSyntaxException
-
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
-