Class AjBatchImageBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
org.aspectj.org.eclipse.jdt.internal.core.builder.BatchImageBuilder
org.aspectj.ajdt.internal.core.builder.AjBatchImageBuilder
- All Implemented Interfaces:
ICompilerRequestor, ICompilationUnitLocator
- Author:
- colyer BatchImageBuilder used by IDEs (AJDT)
-
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, workQueueModifier and TypeFieldDescriptionprotected booleanprotected Compilerstatic final Stringprotected Map<SourceFile, AnnotationBinding[]> static final String[]protected JavaBuilderprotected booleanstatic intprotected NameEnvironmentprotected Stateprotected BuildNotifierstatic final Integerstatic final Integerstatic final Integerprotected LinkedHashSet<SourceFile> static final Integerstatic final Integerstatic final Integerprotected ClasspathMultiDirectory[]protected WorkQueue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptResult(CompilationResult result) Accept a compilation result.Methods inherited from class BatchImageBuilder
acceptSecondaryType, build, cleanOutputFolders, cleanUp, compile, copyExtraResourcesBack, endBatch, findOriginalResource, flushBatch, processAnnotationResults, rebuildTypesAffectedBySecondaryTypes, startBatch, storeProblemsFor, toString, writeClassFileContentsModifier 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
addAllSourceFiles, compile, copyResource, createFolder, createProblemFor, deleteGeneratedFiles, findSourceFile, finishedWith, fromIFile, getInitalTypeNames, initializeAnnotationProcessorManager, internalException, isExcludedFromProject, newCompiler, notifyParticipants, processAnnotations, recordParticipantResult, storeTasksFor, updateProblemsFor, updateTasksFor, writeClassFileModifier and TypeMethodDescriptionprotected voidaddAllSourceFiles(LinkedHashSet<SourceFile> sourceFiles) protected voidcompile(SourceFile[] units) protected voidcopyResource(org.eclipse.core.resources.IResource source, org.eclipse.core.resources.IResource destination) protected org.eclipse.core.resources.IContainercreateFolder(org.eclipse.core.runtime.IPath packagePath, org.eclipse.core.resources.IContainer outputFolder) protected voidcreateProblemFor(org.eclipse.core.resources.IResource resource, IMember javaElement, String message, String problemSeverity) protected voiddeleteGeneratedFiles(org.eclipse.core.resources.IFile[] deletedGeneratedFiles) protected SourceFilefindSourceFile(org.eclipse.core.resources.IFile file, boolean mustExist) protected voidfinishedWith(String sourceLocator, CompilationResult result, char[] mainTypeName, ArrayList definedTypeNames, ArrayList duplicateTypeNames) fromIFile(org.eclipse.core.resources.IFile file) protected String[]getInitalTypeNames(SourceFile[] units) protected voidinitializeAnnotationProcessorManager(Compiler newCompiler) protected RuntimeExceptioninternalException(org.eclipse.core.runtime.CoreException t) protected booleanisExcludedFromProject(org.eclipse.core.runtime.IPath childPath) protected Compilerprotected CompilationParticipantResult[]notifyParticipants(SourceFile[] unitsAboutToCompile) protected voidprocessAnnotations(CompilationParticipantResult[] results) protected voidprotected voidstoreTasksFor(SourceFile sourceFile, CategorizedProblem[] tasks) protected voidupdateProblemsFor(SourceFile sourceFile, CompilationResult result) protected voidupdateTasksFor(SourceFile sourceFile, CompilationResult result) protected char[]writeClassFile(ClassFile classFile, SourceFile compilationUnit, boolean isTopLevelType)
-
Constructor Details
-
AjBatchImageBuilder
-
-
Method Details
-
acceptResult
Description copied from interface:ICompilerRequestorAccept a compilation result.- Specified by:
acceptResultin interfaceICompilerRequestor- Overrides:
acceptResultin classAbstractImageBuilder
-