Module jdk.jshell

Interface ExecutionControlProvider

    • Method Detail

      • name

        String name()
        The unique name of this ExecutionControlProvider. The name must be a sequence of characters from the Basic Multilingual Plane which are Character.isJavaIdentifierPart(char).
        Returns:
        the ExecutionControlProvider's name
      • generate

        ExecutionControl generate​(ExecutionEnv env,
                                  Map<String,String> parameters)
                           throws Throwable
        Create and return the ExecutionControl instance.
        Parameters:
        env - the execution environment, provided by JShell
        parameters - the default or modified parameter map.
        Returns:
        the execution engine
        Throws:
        Throwable - an exception that occurred attempting to create the execution engine.