com.hp.hpl.guess
Class RealInterpreter

java.lang.Object
  extended byorg.python.util.PythonInterpreter
      extended bycom.hp.hpl.guess.RealInterpreter
All Implemented Interfaces:
InterpreterAbstraction

public class RealInterpreter
extends PythonInterpreter
implements InterpreterAbstraction


Field Summary
 boolean state
           
 
Constructor Summary
RealInterpreter()
           
RealInterpreter(PyObject dict)
           
RealInterpreter(PyObject dict, PySystemState systemState)
           
 
Method Summary
 PyObject eval(String s)
          Evaluate a string as Python source and return the result
 void exec(String s)
          Execute a string of Python source in the local namespace
 void freeze(boolean state)
           
static GuessPyStringMap getPyStringMap()
           
 boolean isFrozen()
           
 void log(String filename)
           
 void logCommand(String s)
           
 void remove(String name)
           
 void setImmutable(String name, Object value)
           
 void setImmutable(String name, Object value, boolean overwrite)
           
 void setImmutable(String name, PyObject value)
           
 void setImmutable(String name, PyObject value, boolean overwrite)
           
 void stoplog()
           
 
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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Field Detail

state

public boolean state
Constructor Detail

RealInterpreter

public RealInterpreter()

RealInterpreter

public RealInterpreter(PyObject dict)

RealInterpreter

public RealInterpreter(PyObject dict,
                       PySystemState systemState)
Method Detail

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