net.sf.saffron.walden
Class PrintHandler

java.lang.Object
  |
  +--net.sf.saffron.walden.PrintHandler
All Implemented Interfaces:
Handler

public class PrintHandler
extends Object
implements Handler

A PrintHandler writes the output of a Interpreter to a PrintWriter.

Since:
May 26, 2002
Version:
$Id: //open/saffron/src/net/sf/saffron/walden/PrintHandler.java#2 $
Author:
jhyde

Field Summary
(package private)  boolean interactive
           
(package private)  Interpreter interpreter
           
(package private)  String prompt
           
(package private)  PrintWriter pw
           
 
Constructor Summary
PrintHandler(Interpreter interpreter, PrintWriter pw, boolean interatcive)
           
 
Method Summary
 void afterExecute(OJClass clazz, Object o)
           
 void beforeExecute(ParseTree parseTree)
           
 void beforeParse()
           
 void onParseException(ParseException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interpreter

Interpreter interpreter

pw

PrintWriter pw

prompt

String prompt

interactive

boolean interactive
Constructor Detail

PrintHandler

public PrintHandler(Interpreter interpreter,
                    PrintWriter pw,
                    boolean interatcive)
Method Detail

afterExecute

public void afterExecute(OJClass clazz,
                         Object o)
Specified by:
afterExecute in interface Handler

beforeExecute

public void beforeExecute(ParseTree parseTree)
Specified by:
beforeExecute in interface Handler

beforeParse

public void beforeParse()
Specified by:
beforeParse in interface Handler

onParseException

public void onParseException(ParseException e)
Specified by:
onParseException in interface Handler

SourceForge.net_Logo