com.hp.hpl.guess
Class FakeInterpreter

java.lang.Object
  extended bycom.hp.hpl.guess.FakeInterpreter
All Implemented Interfaces:
InterpreterAbstraction

public class FakeInterpreter
extends Object
implements InterpreterAbstraction


Field Summary
 boolean state
           
 
Constructor Summary
FakeInterpreter()
           
FakeInterpreter(PyObject dict)
           
FakeInterpreter(PyObject dict, PySystemState systemState)
           
 
Method Summary
 void cleanup()
           
 PyObject eval(String s)
           
 void exec(PyObject code)
           
 void exec(String s)
           
 void execfile(InputStream s)
           
 void execfile(InputStream s, String name)
           
 void execfile(String s)
           
 void freeze(boolean state)
           
 PyObject get(String name)
           
 Object get(String name, Class javaclass)
           
 PyObject getLocals()
           
 boolean isFrozen()
           
 void log(String filename)
           
 void logCommand(String s)
           
 void remove(String name)
           
 void set(String name, Object value)
           
 void set(String name, PyObject value)
           
 void setErr(OutputStream outStream)
           
 void setErr(PyObject outStream)
           
 void setErr(Writer outStream)
           
 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 setLocals(PyObject d)
           
 void setOut(OutputStream outStream)
           
 void setOut(PyObject outStream)
           
 void setOut(Writer outStream)
           
 void stoplog()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public boolean state
Constructor Detail

FakeInterpreter

public FakeInterpreter()

FakeInterpreter

public FakeInterpreter(PyObject dict)

FakeInterpreter

public FakeInterpreter(PyObject dict,
                       PySystemState systemState)
Method Detail

cleanup

public void cleanup()
Specified by:
cleanup in interface InterpreterAbstraction

eval

public PyObject eval(String s)
Specified by:
eval in interface InterpreterAbstraction

exec

public void exec(PyObject code)
Specified by:
exec in interface InterpreterAbstraction

exec

public void exec(String s)
Specified by:
exec in interface InterpreterAbstraction

execfile

public void execfile(InputStream s)
Specified by:
execfile in interface InterpreterAbstraction

execfile

public void execfile(InputStream s,
                     String name)
Specified by:
execfile in interface InterpreterAbstraction

execfile

public void execfile(String s)
Specified by:
execfile in interface InterpreterAbstraction

get

public PyObject get(String name)
Specified by:
get in interface InterpreterAbstraction

get

public Object get(String name,
                  Class javaclass)
Specified by:
get in interface InterpreterAbstraction

getLocals

public PyObject getLocals()
Specified by:
getLocals in interface InterpreterAbstraction

set

public void set(String name,
                Object value)
Specified by:
set in interface InterpreterAbstraction

set

public void set(String name,
                PyObject value)
Specified by:
set in interface InterpreterAbstraction

setImmutable

public void setImmutable(String name,
                         Object value)
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,
                         Object value,
                         boolean overwrite)
Specified by:
setImmutable in interface InterpreterAbstraction

setImmutable

public void setImmutable(String name,
                         PyObject value,
                         boolean overwrite)
Specified by:
setImmutable in interface InterpreterAbstraction

setErr

public void setErr(OutputStream outStream)
Specified by:
setErr in interface InterpreterAbstraction

setErr

public void setErr(PyObject outStream)
Specified by:
setErr in interface InterpreterAbstraction

setErr

public void setErr(Writer outStream)
Specified by:
setErr in interface InterpreterAbstraction

setLocals

public void setLocals(PyObject d)
Specified by:
setLocals in interface InterpreterAbstraction

setOut

public void setOut(OutputStream outStream)
Specified by:
setOut in interface InterpreterAbstraction

setOut

public void setOut(PyObject outStream)
Specified by:
setOut in interface InterpreterAbstraction

setOut

public void setOut(Writer outStream)
Specified by:
setOut in interface InterpreterAbstraction

freeze

public void freeze(boolean state)
Specified by:
freeze 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

logCommand

public void logCommand(String s)
Specified by:
logCommand 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