Class BatchImageBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
org.aspectj.org.eclipse.jdt.internal.core.builder.BatchImageBuilder
- All Implemented Interfaces:
ICompilerRequestor, ICompilationUnitLocator
- Direct Known Subclasses:
AjBatchImageBuilder
-
Field Summary
Fields inherited from class AbstractImageBuilder
compiledAllAtOnce, compiler, COMPILER_FACTORY_KEY, filesWithAnnotations, JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES, javaBuilder, keepStoringProblemMarkers, MAX_AT_ONCE, nameEnvironment, newState, notifier, P_HIGH, P_LOW, P_NORMAL, problemSourceFiles, S_ERROR, S_INFO, S_WARNING, sourceLocations, workQueue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBatchImageBuilder(BatchImageBuilder batchImageBuilder, boolean buildStarting, CompilationGroup compilationGroup) protectedBatchImageBuilder(JavaBuilder javaBuilder, boolean buildStarting, CompilationGroup compilationGroup) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidacceptSecondaryType(ClassFile classFile) voidbuild()protected voidcleanOutputFolders(boolean copyBack) protected voidcleanUp()protected voidcompile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup) protected voidcopyExtraResourcesBack(ClasspathMultiDirectory sourceLocation, boolean deletedAll) voidendBatch()ifICompilerRequestor.startBatch()was called then endBatch is called to finalize possibly multipleICompilerRequestor.acceptResult(CompilationResult)protected org.eclipse.core.resources.IResourcefindOriginalResource(org.eclipse.core.runtime.IPath partialPath) voidOptionally called after someICompilerRequestor.acceptResult(CompilationResult)to signal a good point in timeprotected voidprotected voidvoidOptionally called to start multipleICompilerRequestor.acceptResult(CompilationResult)protected voidstoreProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) Creates a marker from each problem and adds it to the resource.toString()protected voidwriteClassFileContents(ClassFile classFile, org.eclipse.core.resources.IFile file, String qualifiedFileName, boolean isTopLevelType, SourceFile compilationUnit) Methods inherited from class AbstractImageBuilder
acceptResult, addAllSourceFiles, compile, copyResource, createFolder, createProblemFor, deleteGeneratedFiles, findSourceFile, finishedWith, fromIFile, getInitalTypeNames, initializeAnnotationProcessorManager, internalException, isExcludedFromProject, newCompiler, notifyParticipants, processAnnotations, recordParticipantResult, storeTasksFor, updateProblemsFor, updateTasksFor, writeClassFile
-
Constructor Details
-
BatchImageBuilder
protected BatchImageBuilder(JavaBuilder javaBuilder, boolean buildStarting, CompilationGroup compilationGroup) -
BatchImageBuilder
protected BatchImageBuilder(BatchImageBuilder batchImageBuilder, boolean buildStarting, CompilationGroup compilationGroup)
-
-
Method Details
-
build
public void build() -
acceptSecondaryType
- Overrides:
acceptSecondaryTypein classAbstractImageBuilder
-
cleanOutputFolders
protected void cleanOutputFolders(boolean copyBack) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
cleanUp
protected void cleanUp()- Overrides:
cleanUpin classAbstractImageBuilder
-
compile
protected void compile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup) - Overrides:
compilein classAbstractImageBuilder
-
copyExtraResourcesBack
protected void copyExtraResourcesBack(ClasspathMultiDirectory sourceLocation, boolean deletedAll) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
findOriginalResource
protected org.eclipse.core.resources.IResource findOriginalResource(org.eclipse.core.runtime.IPath partialPath) -
processAnnotationResults
- Specified by:
processAnnotationResultsin classAbstractImageBuilder
-
rebuildTypesAffectedBySecondaryTypes
protected void rebuildTypesAffectedBySecondaryTypes() -
storeProblemsFor
protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws org.eclipse.core.runtime.CoreException Description copied from class:AbstractImageBuilderCreates 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'sIMarker.SOURCE_IDattribute is positioned toJavaBuilder.SOURCE_IDif the problem was generated by JDT; else theIMarker.SOURCE_IDattribute is carried from the problem to the marker in extra attributes, if present.- Overrides:
storeProblemsForin classAbstractImageBuilder- Throws:
org.eclipse.core.runtime.CoreException
-
toString
-
startBatch
public void startBatch()Description copied from interface:ICompilerRequestorOptionally called to start multipleICompilerRequestor.acceptResult(CompilationResult) -
writeClassFileContents
protected void writeClassFileContents(ClassFile classFile, org.eclipse.core.resources.IFile file, String qualifiedFileName, boolean isTopLevelType, SourceFile compilationUnit) throws org.eclipse.core.runtime.CoreException - Specified by:
writeClassFileContentsin classAbstractImageBuilder- Throws:
org.eclipse.core.runtime.CoreException
-
endBatch
public void endBatch()Description copied from interface:ICompilerRequestorifICompilerRequestor.startBatch()was called then endBatch is called to finalize possibly multipleICompilerRequestor.acceptResult(CompilationResult) -
flushBatch
public void flushBatch()Description copied from interface:ICompilerRequestorOptionally called after someICompilerRequestor.acceptResult(CompilationResult)to signal a good point in time
-