org.aspectj.ajdt.internal.compiler
Interface CompilationResultDestinationManager

All Known Implementing Classes:
OutputLocationAdapter

public interface CompilationResultDestinationManager

acts as a bridge from ajde's OutputLocationManager interface to the compiler internals


Field Summary
static int FILETYPE_CLASS
           
static int FILETYPE_OUTJAR
           
static int FILETYPE_RESOURCE
           
static int FILETYPE_UNKNOWN
           
 
Method Summary
 int discoverChangesSince(java.io.File dir, long buildtime)
           
 java.util.List getAllOutputLocations()
          Return a list of all output locations handled by this OutputLocationManager
 java.io.File getDefaultOutputLocation()
          Return the default output location (for example, /bin).
 java.util.Map getInpathMap()
           
 java.io.File getOutputLocationForClass(java.io.File compilationUnit)
          Return the directory root under which the results of compiling the given source file.
 java.io.File getOutputLocationForResource(java.io.File resource)
          When copying resources from source folders to output location, return the root directory under which the resource should be copied.
 java.lang.String getSourceFolderForFile(java.io.File sourceFile)
          Return the source folder where this source file came from, relative to the project root.
 void reportFileRemove(java.lang.String outputfile, int filetype)
          Report that a class file is being deleted from the specified location.
 void reportFileWrite(java.lang.String outputfile, int filetype)
          Report that a class file is being written to the specified location.
 

Field Detail

FILETYPE_UNKNOWN

static final int FILETYPE_UNKNOWN
See Also:
Constant Field Values

FILETYPE_CLASS

static final int FILETYPE_CLASS
See Also:
Constant Field Values

FILETYPE_OUTJAR

static final int FILETYPE_OUTJAR
See Also:
Constant Field Values

FILETYPE_RESOURCE

static final int FILETYPE_RESOURCE
See Also:
Constant Field Values
Method Detail

getOutputLocationForClass

java.io.File getOutputLocationForClass(java.io.File compilationUnit)
Return the directory root under which the results of compiling the given source file. For example, if the source file contains the type a.b.C, and this method returns "target/classes" the resulting class file will be written to "target/classes/a/b/C.class"

Parameters:
compilationUnit - the compilation unit that has been compiled
Returns:
a File object representing the root directory under which compilation results for this unit should be written

getSourceFolderForFile

java.lang.String getSourceFolderForFile(java.io.File sourceFile)
Return the source folder where this source file came from, relative to the project root. For example 'src' or 'src/main/java' or 'src/test/java'

Parameters:
sourceFile - the file for which the source folder should be determined
Returns:
the source folder

getOutputLocationForResource

java.io.File getOutputLocationForResource(java.io.File resource)
When copying resources from source folders to output location, return the root directory under which the resource should be copied.

Parameters:
resource - the resource to be copied
Returns:
a File object representing the root directory under which this resource should be copied

getAllOutputLocations

java.util.List getAllOutputLocations()
Return a list of all output locations handled by this OutputLocationManager


getDefaultOutputLocation

java.io.File getDefaultOutputLocation()
Return the default output location (for example, /bin). This is where classes which are on the inpath will be placed.


reportFileWrite

void reportFileWrite(java.lang.String outputfile,
                     int filetype)
Report that a class file is being written to the specified location.

Parameters:
outputfile - the output file (including .class suffix)

reportFileRemove

void reportFileRemove(java.lang.String outputfile,
                      int filetype)
Report that a class file is being deleted from the specified location.

Parameters:
outputfile - the output file (including .class suffix)

getInpathMap

java.util.Map getInpathMap()

discoverChangesSince

int discoverChangesSince(java.io.File dir,
                         long buildtime)