org.omegahat.Environment.Interpreter
Interface ManagedEvaluatorInt

All Superinterfaces:
Evaluator
All Known Implementing Classes:
BasicEvaluator

public interface ManagedEvaluatorInt
extends Evaluator

A basic interface that an object implements that allows it to be placed under the "control" of an EvaluatorManager object. Currently, this means that the object can be notified if when a request to terminate the session is received by the manager, allowing them to gracefully terminate rather than having the carpet pulled out from under them!

Only the evaluator classes implement this interface this moment.


Fields inherited from interface org.omegahat.Environment.Interpreter.Evaluator
ThisVariableName
 
Method Summary
 EvaluatorManager manager()
          Retrieve the manager under whose nominal control the object is.
 EvaluatorManager manager(EvaluatorManager mgr)
          Set the manager which "controls" this object.
 
Methods inherited from interface org.omegahat.Environment.Interpreter.Evaluator
addEvaluationListener, addFunctionTable, addMethod, allowUnrestrictedAccess, asObject, asObjectName, asPrimitiveClass, assign, assign, attach, attach, convertPrimitive, currentExpression, currentExpression, Debug, Debug, defaultDatabase, defaultDatabase, detach, detach, error, error, evaluate, evaluate, exists, exit, findClass, findClass, findFunctionOrMethod, functionTableList, get, get, newDatabase, objects, options, options, parse, q, remove, removeFunctionTable, searchPath, searchPath, source, source, source, source, sourceStack, stderr, stdout, toplevelExpression, warning, warning, warning, where, which
 

Method Detail

manager

public EvaluatorManager manager()
Retrieve the manager under whose nominal control the object is.

manager

public EvaluatorManager manager(EvaluatorManager mgr)
Set the manager which "controls" this object.