2009-08-17 16:51:43 +02:00
|
|
|
/* sbt -- Simple Build Tool
|
|
|
|
|
* Copyright 2008, 2009 Mark Harrah
|
|
|
|
|
*/
|
|
|
|
|
package xsbti;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
|
|
|
|
|
public interface AnalysisCallback
|
|
|
|
|
{
|
|
|
|
|
/** Called before the source at the given location is processed. */
|
|
|
|
|
public void beginSource(File source);
|
|
|
|
|
/** Called to indicate that the source file <code>source</code> depends on the source file
|
2009-08-19 05:25:34 +02:00
|
|
|
* <code>dependsOn</code>. Note that only source files included in the current compilation will
|
|
|
|
|
* passed to this method. Dependencies on classes generated by sources not in the current compilation will
|
|
|
|
|
* be passed as class dependencies to the classDependency method.*/
|
2009-08-17 16:51:43 +02:00
|
|
|
public void sourceDependency(File dependsOn, File source);
|
2010-09-18 03:38:40 +02:00
|
|
|
/** Called to indicate that the source file <code>source</code> depends on the top-level
|
|
|
|
|
* class named <code>name</code> from class or jar file <code>binary</code>. */
|
|
|
|
|
public void binaryDependency(File binary, String name, File source);
|
2009-08-17 16:51:43 +02:00
|
|
|
/** Called to indicate that the source file <code>source</code> produces a class file at
|
|
|
|
|
* <code>module</code>.*/
|
|
|
|
|
public void generatedClass(File source, File module);
|
|
|
|
|
/** Called after the source at the given location has been processed. */
|
|
|
|
|
public void endSource(File sourcePath);
|
2009-11-23 04:54:17 +01:00
|
|
|
/** Called when the public API of a source file is extracted. */
|
2009-11-16 14:46:47 +01:00
|
|
|
public void api(File sourceFile, xsbti.api.Source source);
|
2009-08-17 16:51:43 +02:00
|
|
|
}
|