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.ContextOperations must synchronize on theContextas only a single thread can access theContextandgetRegExpBuilder()at one time.org.graalvm.polyglot.ValueGets 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 theContextas only a single thread can access theContextandgetRegExpBuilder()at one time.- Returns:
- the context
-
getRegExpBuilder
public org.graalvm.polyglot.Value getRegExpBuilder()Gets the RegExp builder.- Returns:
- the regexp builder
-