Package com.networknt.schema.regex
Class ECMAScriptRegularExpressionFactory
java.lang.Object
com.networknt.schema.regex.ECMAScriptRegularExpressionFactory
- All Implemented Interfaces:
RegularExpressionFactory
ECMAScript regular expression factory that chooses between GraalJS or Joni
implementations depending on which is on the classpath.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final RegularExpressionFactory
private static final boolean
static final ECMAScriptRegularExpressionFactory
private static final boolean
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JONI_PRESENT
private static final boolean JONI_PRESENT -
GRAALJS_PRESENT
private static final boolean GRAALJS_PRESENT- See Also:
-
DELEGATE
-
INSTANCE
-
-
Constructor Details
-
ECMAScriptRegularExpressionFactory
public ECMAScriptRegularExpressionFactory()
-
-
Method Details
-
getInstance
-
getRegularExpression
Description copied from interface:RegularExpressionFactory
Gets aRegularExpression
.- Specified by:
getRegularExpression
in interfaceRegularExpressionFactory
- Parameters:
regex
- the regular expression text value- Returns:
- the regular expression
-