jacol.processor
Class LispProcessor

java.lang.Object
  |
  +--jacol.processor.LispProcessor
All Implemented Interfaces:
LispInterpreter

public class LispProcessor
extends java.lang.Object
implements LispInterpreter

This class is responsible for managing the connection to the lisp server and passing lisp statements to the lisp server for evaluation.

Version:
0.20 beta
Author:
Jason Lowdermilk Email

Constructor Summary
LispProcessor()
           
 
Method Summary
 java.lang.String eval(java.lang.String lispCode)
          Synchronous implementation of the corresponding method from LispInterpreter.
 void exit()
          Instruct JACOL to exit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LispProcessor

public LispProcessor()
Method Detail

eval

public java.lang.String eval(java.lang.String lispCode)
Synchronous implementation of the corresponding method from LispInterpreter.
Specified by:
eval in interface LispInterpreter
Following copied from interface: jacol.LispInterpreter
Parameters:
lispCode - a String representing a lisp statement.
Returns:
if the lisp interpreter is synchronous, a String will be returned containing the response from the lisp server. Otherwise null will be returned.

exit

public void exit()
Description copied from interface: LispInterpreter
Instruct JACOL to exit. This should be the last thing called from the java program. If it is omitted, JACOL will continue running since there are other threads. If System.exit() is called directly, the lisp server will continue running as an orphaned process.
Specified by:
exit in interface LispInterpreter