uwcse.tools
Class JevaUW

java.lang.Object
  |
  +--uwcse.tools.JevaUW

public class JevaUW
extends java.lang.Object

A simple wrapper around the JevaCLI to capture input and output and dump it to a file.


Constructor Summary
JevaUW(JevaUW old)
          Create a new Jeva wrapper, using the old Jeva wrapper's tracefile, and standard input and output.
JevaUW(java.lang.String traceFileName, java.lang.String initStatements)
          Create a new Jeva wrapper, using the provided traceFileName as a trace file.
 
Method Summary
static void fileIn(java.lang.String fromFile)
          Start a new read-eval-print-loop, with the initial statements coming from the given fromFile.
static void main(java.lang.String[] args)
           
 void repl()
          Start the read-eval-print-loop and go forever.
 void repl(java.lang.String inFileName)
          Start a read-eval-printloop, using the contents of the given file as initial statements.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JevaUW

public JevaUW(JevaUW old)
Create a new Jeva wrapper, using the old Jeva wrapper's tracefile, and standard input and output. The new Jeva wrapper will not have access to the environment of the old wrapper.

JevaUW

public JevaUW(java.lang.String traceFileName,
              java.lang.String initStatements)
       throws java.io.IOException
Create a new Jeva wrapper, using the provided traceFileName as a trace file.
Method Detail

fileIn

public static void fileIn(java.lang.String fromFile)
Start a new read-eval-print-loop, with the initial statements coming from the given fromFile. If an interpreter is already active, the tracefile, and input/output of that interpreter is used. If not a new interpreter is initialized.

main

public static void main(java.lang.String[] args)

repl

public void repl()
          throws java.lang.Throwable
Start the read-eval-print-loop and go forever.

repl

public void repl(java.lang.String inFileName)
          throws java.lang.Throwable
Start a read-eval-printloop, using the contents of the given file as initial statements.