Class Pep302ModuleImporter

java.lang.Object
org.eclipse.ease.lang.python.Pep302ModuleImporter
All Implemented Interfaces:
IScriptEngineLaunchExtension

public class Pep302ModuleImporter extends Object implements IScriptEngineLaunchExtension
  • Constructor Details

    • Pep302ModuleImporter

      public Pep302ModuleImporter()
  • Method Details

    • isModulePath

      public static boolean isModulePath(String candidate)
      Verify if a given path is a subpath of an EASE module.
      Parameters:
      candidate - module path name candidate
      Returns:
      true when candidate is a path to an EASE module
    • isModule

      public static boolean isModule(String candidate)
    • getCode

      public static String getCode(String moduleName, EnvironmentModule enviromentModule)
    • createEngine

      public void createEngine(IScriptEngine engine)
      Description copied from interface: IScriptEngineLaunchExtension
      Called upon a script engine creation. As there might be multiple launch extensions, this might not be the only contribution to the script engine.
      Specified by:
      createEngine in interface IScriptEngineLaunchExtension
      Parameters:
      engine - engine just created