bsh
public class PlexInterpreter extends bsh.Interpreter
PlexInterpreter
class is a wrapper for Interpreter
whose only purpose at the moment is to allow users to log their input to
a file. The PlexReader
class is the one that does the
actual logging. Instances of this class are easier to get our hands on
in some scripts, so we put methods to enable/disable logging and specify
the logfile name in here.Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
PlexInterpreter(bsh.ConsoleInterface console,
java.lang.String name)
Constructor PlexInterpreter, only called in the makeWorkspace.bsh
script.
|
PlexInterpreter(java.lang.String name)
Constructor PlexInterpreter, only called in the makeListener.bsh.
|
Modifier and Type | Method and Description |
---|---|
void |
disableLogging()
Turn OFF input logging for this Interpreter.
|
void |
enableLogging()
Turn ON input logging for this Interpreter.
|
java.lang.String |
logStatus()
Return the status string
|
void |
setLogfile(java.lang.String logfile_name)
Specify the name of the logfile.
|
debug, error, eval, eval, eval, eval, get, getClassManager, getErr, getIn, getInterface, getNameSpace, getOut, getParent, getShowResults, getSourceFileInfo, getStrictJava, invokeMain, main, pathToFile, print, println, redirectOutputToFile, run, set, set, set, set, set, set, setClassLoader, setConsole, setErr, setExitOnEOF, setNameSpace, setOut, setShowResults, setStrictJava, source, source, unset
public static final long serialVersionUID
public PlexInterpreter(bsh.ConsoleInterface console, java.lang.String name)
console
- Console for the workspace using this interpreter instance.name
- Workspace name, which we ignore.public PlexInterpreter(java.lang.String name)
name
- Workspace name, which we ignore.public void setLogfile(java.lang.String logfile_name)
logfile_name
- Where to write the input log, if we keep one.public void enableLogging()
public java.lang.String logStatus()
public void disableLogging()