pnuts.compiler
Interface ClassFileHandler

All Known Implementing Classes:
FileWriterHandler, ZipWriterHandler

public interface ClassFileHandler

This interface defines an abstract interface to get a result of compilation. This interface is used by the following methods.


Method Summary
 java.lang.Object handle(ClassFile cf)
          This method is called with each compiled class file when Compiler.compile(Pnuts, ClassFileHandler) method is called.
 

Method Detail

handle

java.lang.Object handle(ClassFile cf)
This method is called with each compiled class file when Compiler.compile(Pnuts, ClassFileHandler) method is called. The first class file is supposed to be of pnuts.lang.Executable subclass. The compiled code can be executed with Executable.run(Context) method.