public class IncrementalImageBuilder extends AbstractImageBuilder
| Modifier and Type | Field and Description |
|---|---|
protected int |
compileLoop |
protected boolean |
hasStructuralChanges |
protected boolean |
makeOutputFolderConsistent |
static int |
MaxCompileLoop |
protected java.util.ArrayList |
previousSourceFiles |
protected StringSet |
qualifiedStrings |
protected StringSet |
rootStrings |
protected SimpleLookupTable |
secondaryTypesToRemove |
protected StringSet |
simpleStrings |
protected java.util.ArrayList |
sourceFiles |
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_INFO, S_WARNING, sourceLocations, workQueue| Modifier | Constructor and Description |
|---|---|
protected |
IncrementalImageBuilder(BatchImageBuilder batchBuilder) |
protected |
IncrementalImageBuilder(JavaBuilder javaBuilder) |
protected |
IncrementalImageBuilder(JavaBuilder javaBuilder,
State buildState) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAffectedSourceFiles() |
protected void |
addAffectedSourceFiles(StringSet qualifiedSet,
StringSet simpleSet,
StringSet rootSet,
StringSet affectedTypes) |
protected void |
addDependentsOf(IPath path,
boolean isStructuralChange) |
protected void |
addDependentsOf(IPath path,
boolean isStructuralChange,
StringSet qualifiedNames,
StringSet simpleNames,
StringSet rootNames) |
boolean |
build(SimpleLookupTable deltas) |
protected void |
buildAfterBatchBuild() |
protected boolean |
checkForClassFileChanges(IResourceDelta binaryDelta,
ClasspathMultiDirectory md,
int segmentCount) |
protected void |
cleanUp() |
protected void |
compile(SourceFile[] units,
SourceFile[] additionalUnits,
boolean compilingFirstGroup) |
protected void |
deleteGeneratedFiles(IFile[] deletedGeneratedFiles) |
protected boolean |
findAffectedSourceFiles(IResourceDelta delta,
ClasspathLocation[] classFoldersAndJars,
IProject prereqProject) |
protected void |
findAffectedSourceFiles(IResourceDelta binaryDelta,
int segmentCount,
StringSet structurallyChangedTypes) |
protected boolean |
findSourceFiles(IResourceDelta delta) |
protected boolean |
findSourceFiles(IResourceDelta sourceDelta,
ClasspathMultiDirectory md,
int segmentCount) |
protected void |
finishedWith(java.lang.String sourceLocator,
CompilationResult result,
char[] mainTypeName,
java.util.ArrayList definedTypeNames,
java.util.ArrayList duplicateTypeNames) |
protected void |
processAnnotationResults(CompilationParticipantResult[] results) |
protected void |
removeClassFile(IPath typePath,
IContainer outputFolder) |
protected void |
removeSecondaryTypes() |
protected void |
resetCollections() |
java.lang.String |
toString() |
protected void |
updateProblemsFor(SourceFile sourceFile,
CompilationResult result) |
protected void |
updateTasksFor(SourceFile sourceFile,
CompilationResult result) |
protected boolean |
writeClassFileCheck(IFile file,
java.lang.String fileName,
byte[] newBytes) |
protected void |
writeClassFileContents(ClassFile classfile,
IFile file,
java.lang.String qualifiedFileName,
boolean isTopLevelType,
SourceFile compilationUnit) |
acceptResult, acceptSecondaryType, addAllSourceFiles, compile, copyResource, createFolder, createProblemFor, findSourceFile, fromIFile, initializeAnnotationProcessorManager, internalException, isExcludedFromProject, newCompiler, notifyParticipants, processAnnotations, recordParticipantResult, storeProblemsFor, storeTasksFor, writeClassFileprotected java.util.ArrayList sourceFiles
protected java.util.ArrayList previousSourceFiles
protected StringSet qualifiedStrings
protected StringSet simpleStrings
protected StringSet rootStrings
protected SimpleLookupTable secondaryTypesToRemove
protected boolean hasStructuralChanges
protected int compileLoop
protected boolean makeOutputFolderConsistent
public static int MaxCompileLoop
protected IncrementalImageBuilder(JavaBuilder javaBuilder, State buildState)
protected IncrementalImageBuilder(JavaBuilder javaBuilder)
protected IncrementalImageBuilder(BatchImageBuilder batchBuilder)
public boolean build(SimpleLookupTable deltas)
protected void buildAfterBatchBuild()
protected void addAffectedSourceFiles()
protected void addAffectedSourceFiles(StringSet qualifiedSet, StringSet simpleSet, StringSet rootSet, StringSet affectedTypes)
protected void addDependentsOf(IPath path,
boolean isStructuralChange)
protected void addDependentsOf(IPath path,
boolean isStructuralChange,
StringSet qualifiedNames,
StringSet simpleNames,
StringSet rootNames)
protected boolean checkForClassFileChanges(IResourceDelta binaryDelta,
ClasspathMultiDirectory md,
int segmentCount)
throws CoreException
CoreExceptionprotected void cleanUp()
cleanUp in class AbstractImageBuilderprotected void compile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup)
compile in class AbstractImageBuilderprotected void deleteGeneratedFiles(IFile[] deletedGeneratedFiles)
deleteGeneratedFiles in class AbstractImageBuilderprotected boolean findAffectedSourceFiles(IResourceDelta delta,
ClasspathLocation[] classFoldersAndJars,
IProject prereqProject)
protected void findAffectedSourceFiles(IResourceDelta binaryDelta,
int segmentCount,
StringSet structurallyChangedTypes)
protected boolean findSourceFiles(IResourceDelta delta)
throws CoreException
CoreExceptionprotected boolean findSourceFiles(IResourceDelta sourceDelta,
ClasspathMultiDirectory md,
int segmentCount)
throws CoreException
CoreExceptionprotected void finishedWith(java.lang.String sourceLocator,
CompilationResult result,
char[] mainTypeName,
java.util.ArrayList definedTypeNames,
java.util.ArrayList duplicateTypeNames)
finishedWith in class AbstractImageBuilderprotected void processAnnotationResults(CompilationParticipantResult[] results)
processAnnotationResults in class AbstractImageBuilderprotected void removeClassFile(IPath typePath,
IContainer outputFolder)
throws CoreException
CoreExceptionprotected void removeSecondaryTypes()
throws CoreException
CoreExceptionprotected void resetCollections()
protected void updateProblemsFor(SourceFile sourceFile, CompilationResult result) throws CoreException
updateProblemsFor in class AbstractImageBuilderCoreExceptionprotected void updateTasksFor(SourceFile sourceFile, CompilationResult result) throws CoreException
updateTasksFor in class AbstractImageBuilderCoreExceptionprotected void writeClassFileContents(ClassFile classfile, IFile file, java.lang.String qualifiedFileName, boolean isTopLevelType, SourceFile compilationUnit) throws CoreException
writeClassFileContents in class AbstractImageBuilderCoreExceptionorg.aspectj.org.eclipse.jdt.internal.core.builder.AbstractImageBuilder#writeClassFileContents(org.aspectj.org.eclipse.jdt.internal.compiler.ClassFile, org.eclipse.core.resources.IFile, java.lang.String, boolean, org.aspectj.org.eclipse.jdt.internal.core.builder.SourceFile)protected boolean writeClassFileCheck(IFile file,
java.lang.String fileName,
byte[] newBytes)
throws CoreException
CoreExceptionpublic java.lang.String toString()
toString in class java.lang.Object