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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
-