org.codehaus.metaclass.tools.compiler
Class DefaultCompilerMonitor

java.lang.Object
  extended byorg.codehaus.metaclass.tools.compiler.DefaultCompilerMonitor
All Implemented Interfaces:
CompilerMonitor

public class DefaultCompilerMonitor
extends java.lang.Object
implements CompilerMonitor

The default no-op implementation of compiler monitor.

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

Constructor Summary
DefaultCompilerMonitor()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCompilerMonitor

public DefaultCompilerMonitor()
Method Detail

errorWritingDescriptor

public void errorWritingDescriptor(ClassDescriptor descriptor,
                                   java.lang.Exception e)
Description copied from interface: CompilerMonitor
Method called when there was an error writing ClassDescriptor object.

Specified by:
errorWritingDescriptor in interface CompilerMonitor
Parameters:
descriptor - the ClassDescriptor object
e - the Exception
See Also:
CompilerMonitor.errorWritingDescriptor(org.codehaus.metaclass.model.ClassDescriptor, java.lang.Exception)

missingSourceFile

public void missingSourceFile(java.io.File file)
Description copied from interface: CompilerMonitor
Method called when a specified source file does not exist.

Specified by:
missingSourceFile in interface CompilerMonitor
Parameters:
file - the source file
See Also:
CompilerMonitor.missingSourceFile(java.io.File)

javaClassObjectsLoaded

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

Specified by:
javaClassObjectsLoaded in interface CompilerMonitor
Parameters:
classes - the list of JavaClass objects
See Also:
CompilerMonitor.javaClassObjectsLoaded(java.util.Collection)

postFilterJavaClassList

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

Specified by:
postFilterJavaClassList in interface CompilerMonitor
Parameters:
classes - the list of JavaClass objects
See Also:
CompilerMonitor.postFilterJavaClassList(java.util.Collection)

errorGeneratingDescriptor

public void errorGeneratingDescriptor(java.lang.String classname,
                                      java.lang.Throwable t)
Description copied from interface: CompilerMonitor
Error generating descriptor for specified class.

Specified by:
errorGeneratingDescriptor in interface CompilerMonitor
Parameters:
classname - the name of the class
t - the error
See Also:
CompilerMonitor.errorGeneratingDescriptor(java.lang.String, java.lang.Throwable)

postBuildDescriptorsList

public void postBuildDescriptorsList(java.util.Collection descriptors)
Description copied from interface: CompilerMonitor
Called to notify Monitor about the set of ClassDescriptors created.

Specified by:
postBuildDescriptorsList in interface CompilerMonitor
Parameters:
descriptors - the ClassDescriptors compiled.
See Also:
CompilerMonitor.postBuildDescriptorsList(java.util.Collection)

postCompactDescriptorsList

public void postCompactDescriptorsList(java.util.Collection descriptors)
Description copied from interface: CompilerMonitor
Called to notify Monitor about the set of ClassDescriptors after compacting.

Specified by:
postCompactDescriptorsList in interface CompilerMonitor
Parameters:
descriptors - the ClassDescriptors post compacting.
See Also:
CompilerMonitor.postCompactDescriptorsList(java.util.Collection)


Copyright © 2003-2004 Codehaus. All Rights Reserved.