Package org.eclipse.ease.lang.python
Class Pep302ModuleImporter
java.lang.Object
org.eclipse.ease.lang.python.Pep302ModuleImporter
- All Implemented Interfaces:
IScriptEngineLaunchExtension
public class Pep302ModuleImporter extends Object implements IScriptEngineLaunchExtension
-
Constructor Summary
Constructors Constructor Description Pep302ModuleImporter()
-
Method Summary
Modifier and Type Method Description void
createEngine(IScriptEngine engine)
Called upon a script engine creation.static String
getCode(String moduleName, EnvironmentModule enviromentModule)
static boolean
isModule(String candidate)
static boolean
isModulePath(String candidate)
Verify if a given path is a subpath of an EASE module.
-
Constructor Details
-
Pep302ModuleImporter
public Pep302ModuleImporter()
-
-
Method Details
-
isModulePath
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
-
getCode
-
createEngine
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 interfaceIScriptEngineLaunchExtension
- Parameters:
engine
- engine just created
-