public interface IPythonExecutor
限定符和类型 | 方法和说明 |
---|---|
void |
addExecutedListener(com.supermap.desktop.core.Interface.PythonExecuteListener executedListener)
添加执行完成监听器
|
void |
addProcessListener(org.jetbrains.userdefine.process.ProcessListener processListener)
添加执行过程监听器
|
void |
dispose()
结束执行器
|
boolean |
execute(java.io.File file, java.lang.String args, PythonExecuteSetting pythonExecuteSetting)
执行Python文件
|
boolean |
execute(java.lang.String pythonCode)
执行Python代码
|
boolean |
execute(java.lang.String pythonCode, PythonExecuteSetting pythonExecuteSetting)
以指定的执行参数执行Python代码
|
java.lang.String |
getCurrentSDKPath() |
java.lang.String |
getMethodDescription(java.lang.String methodName)
根据方法名称获取方法描述信息
|
boolean |
isProcessDisposed()
python进程是否已结束
|
com.supermap.desktop.core.Interface.IPythonProcess |
newPythonProcess()
新创建一个python进程
|
void |
removeExecutedListener(com.supermap.desktop.core.Interface.PythonExecuteListener executedListener)
移除执行完成监听器
|
void |
removeProcessListener(org.jetbrains.userdefine.process.ProcessListener processListener)
移除执行过程监听器
|
boolean isProcessDisposed()
boolean execute(java.lang.String pythonCode)
pythonCode
- python代码boolean execute(java.lang.String pythonCode, PythonExecuteSetting pythonExecuteSetting)
pythonCode
- python代码java.lang.String getMethodDescription(java.lang.String methodName)
void addExecutedListener(com.supermap.desktop.core.Interface.PythonExecuteListener executedListener)
void removeExecutedListener(com.supermap.desktop.core.Interface.PythonExecuteListener executedListener)
void addProcessListener(org.jetbrains.userdefine.process.ProcessListener processListener)
processListener
- 执行过程监听器void removeProcessListener(org.jetbrains.userdefine.process.ProcessListener processListener)
processListener
- 执行过程监听器void dispose()
boolean execute(java.io.File file, java.lang.String args, PythonExecuteSetting pythonExecuteSetting)
file
- python文件args
- 命令行参数pythonExecuteSetting
- 执行参数com.supermap.desktop.core.Interface.IPythonProcess newPythonProcess()
java.lang.String getCurrentSDKPath()