Package hec.rss.model
Class PythonScriptContainer
java.lang.Object
hec.script.Script
hec.rss.model.PythonScriptContainer
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcompile()static voidfout(BufferedWriter out, String txt) org.python.util.PythonInterpreterorg.python.core.PyStringMapstatic Stringstatic Stringorg.python.core.PyCodestatic Stringvoidread(BufferedReader reader) voidrun()voidsetInterp(org.python.util.PythonInterpreter pythonInterp) voidvoidsetLocals(org.python.core.PyStringMap locals) voidsetPythonCode(org.python.core.PyCode pythonCode) voidvoidwrite(BufferedWriter writer)
-
Field Details
-
LINE_START
-
-
Constructor Details
-
PythonScriptContainer
public PythonScriptContainer()
-
-
Method Details
-
compile
- Throws:
Exception
-
run
- Throws:
Exception
-
exec
- Throws:
Exception
-
setScript
-
getPythonCode
public org.python.core.PyCode getPythonCode() -
setPythonCode
public void setPythonCode(org.python.core.PyCode pythonCode) -
getLocals
public org.python.core.PyStringMap getLocals() -
setLocals
public void setLocals(org.python.core.PyStringMap locals) -
setLocals
-
getInterp
public org.python.util.PythonInterpreter getInterp() -
setInterp
public void setInterp(org.python.util.PythonInterpreter pythonInterp) -
clone
-
read
-
write
-
fout
-
getType
-
getParam
-
getParam
-