Package ai.timefold.jpyinterpreter
Interface PythonInterpreter
- All Known Implementing Classes:
CPythonBackedPythonInterpreter
public interface PythonInterpreter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteGlobal(Map<String, PythonLikeObject> globalsMap, String name) getGlobal(Map<String, PythonLikeObject> globalsMap, String name) booleanhasValidPythonReference(PythonLikeObject instance) importModule(PythonInteger level, List<PythonString> fromList, Map<String, PythonLikeObject> globalsMap, Map<String, PythonLikeObject> localsMap, String moduleName) readLine()Reads a line from standard inputvoidsetGlobal(Map<String, PythonLikeObject> globalsMap, String name, PythonLikeObject value) voidsetPythonReference(PythonLikeObject instance, OpaquePythonReference reference) voidWrites output without a trailing newline to standard output
-
Field Details
-
DEFAULT
-
-
Method Details
-
hasValidPythonReference
-
setPythonReference
-
getGlobal
-
setGlobal
-
deleteGlobal
-
importModule
PythonLikeObject importModule(PythonInteger level, List<PythonString> fromList, Map<String, PythonLikeObject> globalsMap, Map<String, PythonLikeObject> localsMap, String moduleName) -
write
Writes output without a trailing newline to standard output- Parameters:
output- the text to write
-
readLine
String readLine()Reads a line from standard input- Returns:
- A line read from standard input
-
getTraceback
PythonTraceback getTraceback()
-