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 org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
compiledAllAtOnce, compiler, 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
ModifierConstructorDescriptionprotected
BatchImageBuilder
(BatchImageBuilder batchImageBuilder, boolean buildStarting, CompilationGroup compilationGroup) protected
BatchImageBuilder
(JavaBuilder javaBuilder, boolean buildStarting, CompilationGroup compilationGroup) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
(ClasspathMultiDirectory sourceLocation, boolean deletedAll) protected org.eclipse.core.resources.IResource
findOriginalResource
(org.eclipse.core.runtime.IPath partialPath) protected void
protected void
protected void
storeProblemsFor
(SourceFile sourceFile, CategorizedProblem[] problems) Creates a marker from each problem and adds it to the resource.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
-
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:
acceptSecondaryType
in classAbstractImageBuilder
-
cleanOutputFolders
protected void cleanOutputFolders(boolean copyBack) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
cleanUp
protected void cleanUp()- Overrides:
cleanUp
in classAbstractImageBuilder
-
compile
protected void compile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup) - Overrides:
compile
in 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:
processAnnotationResults
in classAbstractImageBuilder
-
rebuildTypesAffectedBySecondaryTypes
protected void rebuildTypesAffectedBySecondaryTypes() -
storeProblemsFor
protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws org.eclipse.core.runtime.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'sIMarker.SOURCE_ID
attribute is positioned toJavaBuilder.SOURCE_ID
if the problem was generated by JDT; else theIMarker.SOURCE_ID
attribute is carried from the problem to the marker in extra attributes, if present.- Overrides:
storeProblemsFor
in classAbstractImageBuilder
- Throws:
org.eclipse.core.runtime.CoreException
-
toString
-