harpoon.ClassFile
Interface SerializableCodeFactory

All Superinterfaces:
HCodeFactory, Serializable
All Known Implementing Classes:
ArrayCopyImplementer, CachingCodeFactory, PreallocOpt.SafeCachingCodeFactory

public interface SerializableCodeFactory
extends HCodeFactory, Serializable

A SerializableCodeFactory is an HCodeFactory that implements java.io.Serializable. This is a convenience interface to make it possible to easily use anonymous inner classes to define serializable code factories. A code factory is generally serializable if it has no internal fields or state (most code factories are thus serializable). CachingCodeFactory keeps state (the cache of converted methods), so it has to take extra care before it can call itself Serializable. Many simple method-at-a-time optimizing code factories will be serializable, but complicated whole-program optimizations will probably will not be unless special attention is paid.

Version:
$Id: SerializableCodeFactory.java,v 1.2 2002/02/25 21:03:04 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Method Summary
 
Methods inherited from interface harpoon.ClassFile.HCodeFactory
clear, convert, getCodeName