com.hp.hpl.guess
Class RealInterpreter
java.lang.Object
org.python.util.PythonInterpreter
com.hp.hpl.guess.RealInterpreter
- All Implemented Interfaces:
- InterpreterAbstraction
- public class RealInterpreter
- extends PythonInterpreter
- implements InterpreterAbstraction
|
Field Summary |
boolean |
state
|
| Methods inherited from class org.python.util.PythonInterpreter |
cleanup, exec, execfile, execfile, execfile, get, get, getLocals, initialize, set, set, setErr, setErr, setErr, setLocals, setOut, setOut, setOut |
| Methods inherited from interface com.hp.hpl.guess.InterpreterAbstraction |
cleanup, exec, execfile, execfile, execfile, get, get, getLocals, set, set, setErr, setErr, setErr, setLocals, setOut, setOut, setOut |
state
public boolean state
RealInterpreter
public RealInterpreter()
RealInterpreter
public RealInterpreter(PyObject dict)
RealInterpreter
public RealInterpreter(PyObject dict,
PySystemState systemState)
getPyStringMap
public static GuessPyStringMap getPyStringMap()
setImmutable
public void setImmutable(String name,
Object value)
- Specified by:
setImmutable in interface InterpreterAbstraction
setImmutable
public void setImmutable(String name,
Object value,
boolean overwrite)
- Specified by:
setImmutable in interface InterpreterAbstraction
setImmutable
public void setImmutable(String name,
PyObject value)
- Specified by:
setImmutable in interface InterpreterAbstraction
setImmutable
public void setImmutable(String name,
PyObject value,
boolean overwrite)
- Specified by:
setImmutable in interface InterpreterAbstraction
freeze
public void freeze(boolean state)
- Specified by:
freeze in interface InterpreterAbstraction
exec
public void exec(String s)
- Description copied from class:
PythonInterpreter
- Execute a string of Python source in the local namespace
- Specified by:
exec in interface InterpreterAbstraction- Overrides:
exec in class PythonInterpreter
- Parameters:
s - the string to execute
eval
public PyObject eval(String s)
- Description copied from class:
PythonInterpreter
- Evaluate a string as Python source and return the result
- Specified by:
eval in interface InterpreterAbstraction- Overrides:
eval in class PythonInterpreter
- Parameters:
s - the string to evaluate
logCommand
public void logCommand(String s)
- Specified by:
logCommand in interface InterpreterAbstraction
isFrozen
public boolean isFrozen()
- Specified by:
isFrozen in interface InterpreterAbstraction
log
public void log(String filename)
- Specified by:
log in interface InterpreterAbstraction
stoplog
public void stoplog()
- Specified by:
stoplog in interface InterpreterAbstraction
remove
public void remove(String name)
- Specified by:
remove in interface InterpreterAbstraction