org.aspectj.org.eclipse.jdt.internal.core.builder
Class BatchImageBuilder

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
      extended by org.aspectj.org.eclipse.jdt.internal.core.builder.BatchImageBuilder
All Implemented Interfaces:
ICompilerRequestor, ICompilationUnitLocator
Direct Known Subclasses:
AjBatchImageBuilder

public class BatchImageBuilder
extends AbstractImageBuilder


Field Summary
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
compiledAllAtOnce, compiler, filesWithAnnotations, JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES, JAVA_TASK_MARKER_ATTRIBUTE_NAMES, javaBuilder, keepStoringProblemMarkers, MAX_AT_ONCE, nameEnvironment, newState, notifier, P_HIGH, P_LOW, P_NORMAL, problemSourceFiles, S_ERROR, S_WARNING, sourceLocations, workQueue
 
Constructor Summary
protected BatchImageBuilder(JavaBuilder javaBuilder, boolean buildStarting)
           
 
Method Summary
protected  void acceptSecondaryType(ClassFile classFile)
           
 void build()
           
protected  void cleanOutputFolders(boolean copyBack)
           
protected  void cleanUp()
           
protected  void compile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup)
           
protected  void copyExtraResourcesBack(org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathMultiDirectory sourceLocation, boolean deletedAll)
           
protected  IResource findOriginalResource(IPath partialPath)
           
protected  void processAnnotationResults(CompilationParticipantResult[] results)
           
protected  void rebuildTypesAffectedBySecondaryTypes()
           
protected  void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems)
          Creates a marker from each problem and adds it to the resource.
 java.lang.String toString()
           
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
acceptResult, addAllSourceFiles, compile, copyResource, createFolder, createProblemFor, deleteGeneratedFiles, findSourceFile, finishedWith, fromIFile, initializeAnnotationProcessorManager, internalException, isExcludedFromProject, newCompiler, notifyParticipants, processAnnotations, recordParticipantResult, storeTasksFor, updateProblemsFor, updateTasksFor, writeClassFile, writeClassFileContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchImageBuilder

protected BatchImageBuilder(JavaBuilder javaBuilder,
                            boolean buildStarting)
Method Detail

build

public void build()

acceptSecondaryType

protected void acceptSecondaryType(ClassFile classFile)
Overrides:
acceptSecondaryType in class AbstractImageBuilder

cleanOutputFolders

protected void cleanOutputFolders(boolean copyBack)
                           throws CoreException
Throws:
CoreException

cleanUp

protected void cleanUp()
Overrides:
cleanUp in class AbstractImageBuilder

compile

protected void compile(SourceFile[] units,
                       SourceFile[] additionalUnits,
                       boolean compilingFirstGroup)
Overrides:
compile in class AbstractImageBuilder

copyExtraResourcesBack

protected void copyExtraResourcesBack(org.aspectj.org.eclipse.jdt.internal.core.builder.ClasspathMultiDirectory sourceLocation,
                                      boolean deletedAll)
                               throws CoreException
Throws:
CoreException

findOriginalResource

protected IResource findOriginalResource(IPath partialPath)

processAnnotationResults

protected void processAnnotationResults(CompilationParticipantResult[] results)
Specified by:
processAnnotationResults in class AbstractImageBuilder

rebuildTypesAffectedBySecondaryTypes

protected void rebuildTypesAffectedBySecondaryTypes()

storeProblemsFor

protected void storeProblemsFor(SourceFile sourceFile,
                                CategorizedProblem[] problems)
                         throws CoreException
Description copied from class: AbstractImageBuilder
Creates a marker from each problem and adds it to the resource. The marker is as follows: - its type is T_PROBLEM - its plugin ID is the JavaBuilder's plugin ID - its message is the problem's message - its priority reflects the severity of the problem - its range is the problem's range - it has an extra attribute "ID" which holds the problem's id - it's IMarker#SOURCE_ID attribute is positioned to JavaBuilder.SOURCE_ID if the problem was generated by JDT; else the IMarker#SOURCE_ID attribute is carried from the problem to the marker in extra attributes, if present.

Overrides:
storeProblemsFor in class AbstractImageBuilder
Throws:
CoreException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object