jacol.processor
Class AsynchInterpreter

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

public class AsynchInterpreter
extends java.lang.Object
implements LispInterpreter

This class provides an asynchronous implementation of the LispInterpreter interface.

Version:
0.20 beta
Author:
Jason Lowdermilk Email

Constructor Summary
AsynchInterpreter(LispCaller caller)
          Create an asynchronous lisp interpreter.
 
Method Summary
 java.lang.String eval(java.lang.String expression)
          Implementation of the corresponding method from the LispInterpreter interface.
 void exit()
          Implementation of the corresponding method from the LispInterpreter interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsynchInterpreter

public AsynchInterpreter(LispCaller caller)
Create an asynchronous lisp interpreter.
Parameters:
caller - the LispCaller to notify after evaluating expressions
Method Detail

eval

public java.lang.String eval(java.lang.String expression)
Implementation of the corresponding method from the LispInterpreter interface.
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()
Implementation of the corresponding method from the LispInterpreter interface.
Specified by:
exit in interface LispInterpreter