org.omegahat.Environment.Debugger
Class SimpleEvaluationMonitor

java.lang.Object
  |
  +--org.omegahat.Environment.Debugger.SimpleEvaluationMonitor
All Implemented Interfaces:
EvaluationListener, java.util.EventListener, SubEvaluationListener

public class SimpleEvaluationMonitor
extends java.lang.Object
implements SubEvaluationListener

This is a class that listens to the evaluation of tasks in a given Evaluator and announces each task and sub-expression as it becomes active, printing the interpreted stack trace as it happens. This is the text based version of ExpressionTreeWindow


Field Summary
protected  java.io.PrintStream out
           
 
Constructor Summary
SimpleEvaluationMonitor()
           
SimpleEvaluationMonitor(java.io.PrintStream stream)
           
 
Method Summary
 void nextEvaluation(EvaluationEvent ev)
          The expression in the EvaluationEvent passed as argument is about to be evaluated, as a top level evaluation.
 java.io.PrintStream out()
           
 java.io.PrintStream out(java.io.PrintStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.PrintStream out
Constructor Detail

SimpleEvaluationMonitor

public SimpleEvaluationMonitor()

SimpleEvaluationMonitor

public SimpleEvaluationMonitor(java.io.PrintStream stream)
Method Detail

out

public java.io.PrintStream out()

out

public java.io.PrintStream out(java.io.PrintStream stream)

nextEvaluation

public void nextEvaluation(EvaluationEvent ev)
Description copied from interface: EvaluationListener
The expression in the EvaluationEvent passed as argument is about to be evaluated, as a top level evaluation.
Specified by:
nextEvaluation in interface EvaluationListener