org.alicebot.server.core.interpreter
Class RhinoInterpreter

java.lang.Object
  extended by org.alicebot.server.core.interpreter.RhinoInterpreter
All Implemented Interfaces:
Interpreter

public class RhinoInterpreter
extends java.lang.Object
implements Interpreter

An implementation of Interpreter that handles server-side JavaScript using the Rhino package.

Version:
1.0
Author:
Jon Baer

Constructor Summary
RhinoInterpreter()
           
 
Method Summary
 java.lang.String evaluate(java.lang.String expression)
          Evaluates a given JavaScript expression for a given userid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoInterpreter

public RhinoInterpreter()
Method Detail

evaluate

public java.lang.String evaluate(java.lang.String expression)
Description copied from interface: Interpreter
Evaluates a given JavaScript expression for a given userid.

Specified by:
evaluate in interface Interpreter
Parameters:
expression - the expression to evaluate