Algernon Software

org.algernon.lang
Interface ExternalLanguageEvaluator

All Known Implementing Classes:
GenericUnixShellEvaluator, JathaEvaluator, JavaEvaluator

public interface ExternalLanguageEvaluator

Created by IntelliJ IDEA. User: hewett Date: Dec 10, 2002 Time: 4:31:14 PM To change this template use Options | File Templates.


Method Summary
 Object evaluateExpression(LispValue expression, Algernon algy)
          Evaluates an expression written in the given language..
 Boolean toBoolean(Object any, Algernon algy)
          This method must return a Java Boolean value for any type of Object returned by the evaluateExpression method.
 

Method Detail

evaluateExpression

public Object evaluateExpression(LispValue expression,
                                 Algernon algy)
Evaluates an expression written in the given language..

Parameters:
expression - an expression in a string.
Returns:
the value of the expression, which the caller must interpret.

toBoolean

public Boolean toBoolean(Object any,
                         Algernon algy)
This method must return a Java Boolean value for any type of Object returned by the evaluateExpression method. For example, null might correspond to Boolean.False,

Parameters:
any - any Java object, including null.
Returns:
a Boolean object

Algernon Software