org.dellroad.jc
Interface ObjectGenerator

All Known Implementing Classes:
JCObjectGenerator

public interface ObjectGenerator

Interface implemented by classes that generate JC ELF object files from raw class files.


Method Summary
 void generateObject(String className, ClassfileFinder finder, File file)
          Generate the ELF object file for the named class and write it into the file.
 boolean objectIsValid(String className, ClassfileFinder finder, File file)
          Determine if an ELF object file is valid for the named class and all other classes (available through the provided finder) on which the object file may depend.
 

Method Detail

generateObject

public void generateObject(String className,
                           ClassfileFinder finder,
                           File file)
                    throws Exception
Generate the ELF object file for the named class and write it into the file.

Parameters:
className - Class name (with slashes, not dots)
finder - Object capable of retrieving class files
file - Where to put resulting ELF object
Throws:
Exception

objectIsValid

public boolean objectIsValid(String className,
                             ClassfileFinder finder,
                             File file)
                      throws Exception
Determine if an ELF object file is valid for the named class and all other classes (available through the provided finder) on which the object file may depend.

Parameters:
className - Class name (with slashes, not dots)
finder - Class finder capable of retrieving class files
file - Where to put resulting ELF object
Throws:
Exception