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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interpreter
Interpreter interpreter
pw
PrintWriter pw
prompt
String prompt
interactive
boolean interactive
PrintHandler
public PrintHandler(Interpreter interpreter,
PrintWriter pw,
boolean interatcive)
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