org.codehaus.metaclass.tools.compiler
Interface CompilerMonitor

All Known Implementing Classes:
DefaultCompilerMonitor, GenerateClassDescriptorsTask

public interface CompilerMonitor

This is the interface via which interested parties can monitor events that occur during compilation.

Version:
$Revision: 1.5 $ $Date: 2003/11/27 08:09:53 $
Author:
Peter Donald

Method Summary
 void errorGeneratingDescriptor(java.lang.String classname, java.lang.Throwable t)
          Error generating descriptor for specified class.
 void errorWritingDescriptor(ClassDescriptor descriptor, java.lang.Exception e)
          Method called when there was an error writing ClassDescriptor object.
 void javaClassObjectsLoaded(java.util.Collection classes)
          Called to notify the monitor about the list of JavaClass objects loaded from the source files.
 void missingSourceFile(java.io.File file)
          Method called when a specified source file does not exist.
 void postBuildDescriptorsList(java.util.Collection descriptors)
          Called to notify Monitor about the set of ClassDescriptors created.
 void postCompactDescriptorsList(java.util.Collection descriptors)
          Called to notify Monitor about the set of ClassDescriptors after compacting.
 void postFilterJavaClassList(java.util.Collection classes)
          Called to notify the monitor about the list of JavaClass objects that still remain after filtering.
 

Method Detail

errorWritingDescriptor

public void errorWritingDescriptor(ClassDescriptor descriptor,
                                   java.lang.Exception e)
Method called when there was an error writing ClassDescriptor object.

Parameters:
descriptor - the ClassDescriptor object
e - the Exception

missingSourceFile

public void missingSourceFile(java.io.File file)
Method called when a specified source file does not exist.

Parameters:
file - the source file

javaClassObjectsLoaded

public void javaClassObjectsLoaded(java.util.Collection classes)
Called to notify the monitor about the list of JavaClass objects loaded from the source files.

Parameters:
classes - the list of JavaClass objects

postFilterJavaClassList

public void postFilterJavaClassList(java.util.Collection classes)
Called to notify the monitor about the list of JavaClass objects that still remain after filtering.

Parameters:
classes - the list of JavaClass objects

errorGeneratingDescriptor

public void errorGeneratingDescriptor(java.lang.String classname,
                                      java.lang.Throwable t)
Error generating descriptor for specified class.

Parameters:
classname - the name of the class
t - the error

postBuildDescriptorsList

public void postBuildDescriptorsList(java.util.Collection descriptors)
Called to notify Monitor about the set of ClassDescriptors created.

Parameters:
descriptors - the ClassDescriptors compiled.

postCompactDescriptorsList

public void postCompactDescriptorsList(java.util.Collection descriptors)
Called to notify Monitor about the set of ClassDescriptors after compacting.

Parameters:
descriptors - the ClassDescriptors post compacting.


Copyright © 2003-2004 Codehaus. All Rights Reserved.