Interface JavaScriptInterpreter


public interface JavaScriptInterpreter
Interface to execute JavaScript code.

Some clients, such as the WEB player, require to execute JavaScript code to allow playback.

  • Method Summary

    Modifier and Type
    Method
    Description
    run(String code, String functionName, String... parameters)
    Runs the specified function in the code.
  • Method Details

    • run

      String run(@Nonnull String code, @Nonnull String functionName, String... parameters)
      Runs the specified function in the code.
      Parameters:
      code - the code that contains the function that should be run
      functionName - the name of the function that should be run
      parameters - the parameters to run with the function
      Returns:
      the result of the run function