Interface GroovyRunner

    • Method Detail

      • canRun

        boolean canRun​(Class<?> scriptClass,
                       GroovyClassLoader loader)
        Returns true if this runner is able to run the given class.
        Parameters:
        scriptClass - class to run
        loader - used to locate classes and resources
        Returns:
        true if given class can be run, else false
      • run

        Object run​(Class<?> scriptClass,
                   GroovyClassLoader loader)
        Runs the given class.
        Parameters:
        scriptClass - class to run
        loader - used to locate classes and resources
        Returns:
        result of running the class