Package com.networknt.schema.regex
Class GraalJSRegularExpressionContext
java.lang.Object
com.networknt.schema.regex.GraalJSRegularExpressionContext
GraalJSRegularExpressionContext.
-
Constructor Summary
ConstructorsConstructorDescriptionGraalJSRegularExpressionContext
(org.graalvm.polyglot.Context context) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.Context
Operations must synchronize on theContext
as only a single thread can access theContext
andgetRegExpBuilder()
at one time.org.graalvm.polyglot.Value
Gets the RegExp builder.
-
Constructor Details
-
GraalJSRegularExpressionContext
public GraalJSRegularExpressionContext(org.graalvm.polyglot.Context context) Constructor.It is the caller's responsibility to release the context when it is no longer required.
- Parameters:
context
- the context
-
-
Method Details
-
getContext
public org.graalvm.polyglot.Context getContext()Operations must synchronize on theContext
as only a single thread can access theContext
andgetRegExpBuilder()
at one time.- Returns:
- the context
-
getRegExpBuilder
public org.graalvm.polyglot.Value getRegExpBuilder()Gets the RegExp builder.- Returns:
- the regexp builder
-