Class GraalJSRegularExpressionContext


  • public class GraalJSRegularExpressionContext
    extends Object
    GraalJSRegularExpressionContext.
    • Constructor Detail

      • 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 Detail

      • getContext

        public org.graalvm.polyglot.Context getContext()
        Operations must synchronize on the Context as only a single thread can access the Context and getRegExpBuilder() at one time.
        Returns:
        the context
      • getRegExpBuilder

        public org.graalvm.polyglot.Value getRegExpBuilder()
        Gets the RegExp builder.
        Returns:
        the regexp builder