forked from comixed/comixed-plugin-language-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPythonPluginRuntimeProvider.java
More file actions
40 lines (34 loc) · 1.17 KB
/
PythonPluginRuntimeProvider.java
File metadata and controls
40 lines (34 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package org.comixedproject.plugins.python;
import java.util.List;
import java.util.Objects;
import org.comixedproject.model.plugin.LibraryPlugin;
import org.comixedproject.model.plugin.LibraryPluginProperty;
import org.comixedproject.plugins.AbstractPluginRuntime;
import org.comixedproject.plugins.PluginRuntimeProvider;
import org.python.util.PythonInterpreter;
/**
* <code>PythonPluginRuntimeProvider</code> defines a {@link PluginRuntimeProvider} for Python.
*
* @author Darryl L. Pierce
*/
public class PythonPluginRuntimeProvider extends AbstractPluginRuntime {
private static final String PLUGIN_NAME = "ComiXedPythonLanguagePlugin";
private static final String PLUGIN_VERSION = "0.1-SNAPSHOT";
@Override
public String getName(final String filename) {
return PLUGIN_NAME;
}
@Override
public String getVersion(final String filename) {
return PLUGIN_VERSION;
}
@Override
public List<LibraryPluginProperty> getProperties(final String filename) {
return List.of();
}
@Override
public Boolean execute(final LibraryPlugin libraryPlugin) {
final PythonInterpreter interpreter = new PythonInterpreter();
return Objects.nonNull(interpreter);
}
}