public class IncrementalImageBuilder extends AbstractImageBuilder
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasStructuralChanges |
protected boolean |
makeOutputFolderConsistent |
static int |
MaxCompileLoop |
protected java.util.LinkedHashSet<SourceFile> |
previousSourceFiles |
protected java.util.Set<java.lang.String> |
qualifiedStrings |
protected java.util.Set<java.lang.String> |
rootStrings |
protected SimpleLookupTable |
secondaryTypesToRemove |
protected java.util.Set<java.lang.String> |
simpleStrings |
protected java.util.LinkedHashSet<SourceFile> |
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,
CompilationGroup compilationGroup) |
protected |
IncrementalImageBuilder(JavaBuilder javaBuilder) |
protected |
IncrementalImageBuilder(JavaBuilder javaBuilder,
State buildState,
CompilationGroup compilationGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAffectedSourceFiles() |
protected void |
addAffectedSourceFiles(java.util.Set<java.lang.String> qualifiedSet,
java.util.Set<java.lang.String> simpleSet,
java.util.Set<java.lang.String> rootSet,
java.util.Set<java.lang.String> affectedTypes) |
protected void |
addDependentsOf(IPath path,
boolean isStructuralChange) |
protected void |
addDependentsOf(IPath path,
boolean isStructuralChange,
java.util.Set<java.lang.String> qualifiedNames,
java.util.Set<java.lang.String> simpleNames,
java.util.Set<java.lang.String> 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.LinkedHashSet<SourceFile> sourceFiles
protected java.util.LinkedHashSet<SourceFile> previousSourceFiles
protected java.util.Set<java.lang.String> qualifiedStrings
protected java.util.Set<java.lang.String> simpleStrings
protected java.util.Set<java.lang.String> rootStrings
protected SimpleLookupTable secondaryTypesToRemove
protected boolean hasStructuralChanges
protected boolean makeOutputFolderConsistent
public static int MaxCompileLoop
protected IncrementalImageBuilder(JavaBuilder javaBuilder, State buildState, CompilationGroup compilationGroup)
protected IncrementalImageBuilder(JavaBuilder javaBuilder)
protected IncrementalImageBuilder(BatchImageBuilder batchBuilder, CompilationGroup compilationGroup)
public boolean build(SimpleLookupTable deltas)
protected void buildAfterBatchBuild()
protected void addAffectedSourceFiles()
protected void addAffectedSourceFiles(java.util.Set<java.lang.String> qualifiedSet,
java.util.Set<java.lang.String> simpleSet,
java.util.Set<java.lang.String> rootSet,
java.util.Set<java.lang.String> affectedTypes)
protected void addDependentsOf(IPath path,
boolean isStructuralChange)
protected void addDependentsOf(IPath path,
boolean isStructuralChange,
java.util.Set<java.lang.String> qualifiedNames,
java.util.Set<java.lang.String> simpleNames,
java.util.Set<java.lang.String> 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