public abstract class AbstractImageBuilder extends java.lang.Object implements ICompilerRequestor, ICompilationUnitLocator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
compiledAllAtOnce |
protected Compiler |
compiler |
protected SimpleSet |
filesWithAnnotations |
static java.lang.String[] |
JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES |
static java.lang.String[] |
JAVA_TASK_MARKER_ATTRIBUTE_NAMES |
protected JavaBuilder |
javaBuilder |
protected boolean |
keepStoringProblemMarkers |
static int |
MAX_AT_ONCE |
protected NameEnvironment |
nameEnvironment |
protected State |
newState |
protected BuildNotifier |
notifier |
static java.lang.Integer |
P_HIGH |
static java.lang.Integer |
P_LOW |
static java.lang.Integer |
P_NORMAL |
protected java.util.ArrayList |
problemSourceFiles |
static java.lang.Integer |
S_ERROR |
static java.lang.Integer |
S_WARNING |
protected ClasspathMultiDirectory[] |
sourceLocations |
protected WorkQueue |
workQueue |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractImageBuilder(JavaBuilder javaBuilder,
boolean buildStarting,
State newState) |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptResult(CompilationResult result)
Accept a compilation result.
|
protected void |
acceptSecondaryType(ClassFile classFile) |
protected void |
addAllSourceFiles(java.util.ArrayList sourceFiles) |
protected void |
cleanUp() |
protected void |
compile(SourceFile[] units) |
protected void |
compile(SourceFile[] units,
SourceFile[] additionalUnits,
boolean compilingFirstGroup) |
protected void |
copyResource(IResource source,
IResource destination) |
protected IContainer |
createFolder(IPath packagePath,
IContainer outputFolder) |
protected void |
createProblemFor(IResource resource,
IMember javaElement,
java.lang.String message,
java.lang.String problemSeverity) |
protected void |
deleteGeneratedFiles(IFile[] deletedGeneratedFiles) |
protected SourceFile |
findSourceFile(IFile file,
boolean mustExist) |
protected void |
finishedWith(java.lang.String sourceLocator,
CompilationResult result,
char[] mainTypeName,
java.util.ArrayList definedTypeNames,
java.util.ArrayList duplicateTypeNames) |
ICompilationUnit |
fromIFile(IFile file) |
protected void |
initializeAnnotationProcessorManager(Compiler newCompiler) |
protected java.lang.RuntimeException |
internalException(CoreException t) |
protected boolean |
isExcludedFromProject(IPath childPath) |
protected Compiler |
newCompiler() |
protected CompilationParticipantResult[] |
notifyParticipants(SourceFile[] unitsAboutToCompile) |
protected abstract void |
processAnnotationResults(CompilationParticipantResult[] results) |
protected void |
processAnnotations(CompilationParticipantResult[] results) |
protected void |
recordParticipantResult(CompilationParticipantResult result) |
protected void |
storeProblemsFor(SourceFile sourceFile,
CategorizedProblem[] problems)
Creates a marker from each problem and adds it to the resource.
|
protected void |
storeTasksFor(SourceFile sourceFile,
CategorizedProblem[] tasks) |
protected void |
updateProblemsFor(SourceFile sourceFile,
CompilationResult result) |
protected void |
updateTasksFor(SourceFile sourceFile,
CompilationResult result) |
protected char[] |
writeClassFile(ClassFile classFile,
SourceFile compilationUnit,
boolean isTopLevelType) |
protected void |
writeClassFileContents(ClassFile classFile,
IFile file,
java.lang.String qualifiedFileName,
boolean isTopLevelType,
SourceFile compilationUnit) |
protected JavaBuilder javaBuilder
protected State newState
protected NameEnvironment nameEnvironment
protected ClasspathMultiDirectory[] sourceLocations
protected BuildNotifier notifier
protected Compiler compiler
protected WorkQueue workQueue
protected java.util.ArrayList problemSourceFiles
protected boolean compiledAllAtOnce
protected boolean keepStoringProblemMarkers
protected SimpleSet filesWithAnnotations
public static int MAX_AT_ONCE
public static final java.lang.String[] JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES
public static final java.lang.String[] JAVA_TASK_MARKER_ATTRIBUTE_NAMES
public static final java.lang.Integer S_ERROR
public static final java.lang.Integer S_WARNING
public static final java.lang.Integer P_HIGH
public static final java.lang.Integer P_NORMAL
public static final java.lang.Integer P_LOW
protected AbstractImageBuilder(JavaBuilder javaBuilder, boolean buildStarting, State newState)
public void acceptResult(CompilationResult result)
ICompilerRequestoracceptResult in interface ICompilerRequestorprotected void acceptSecondaryType(ClassFile classFile)
protected void addAllSourceFiles(java.util.ArrayList sourceFiles)
throws CoreException
CoreExceptionprotected void cleanUp()
protected void compile(SourceFile[] units)
protected void compile(SourceFile[] units, SourceFile[] additionalUnits, boolean compilingFirstGroup)
protected void copyResource(IResource source,
IResource destination)
throws CoreException
CoreExceptionprotected void createProblemFor(IResource resource,
IMember javaElement,
java.lang.String message,
java.lang.String problemSeverity)
protected void deleteGeneratedFiles(IFile[] deletedGeneratedFiles)
protected SourceFile findSourceFile(IFile file, boolean mustExist)
protected void finishedWith(java.lang.String sourceLocator,
CompilationResult result,
char[] mainTypeName,
java.util.ArrayList definedTypeNames,
java.util.ArrayList duplicateTypeNames)
protected IContainer createFolder(IPath packagePath,
IContainer outputFolder)
throws CoreException
CoreExceptionpublic ICompilationUnit fromIFile(IFile file)
fromIFile in interface ICompilationUnitLocatorprotected void initializeAnnotationProcessorManager(Compiler newCompiler)
protected java.lang.RuntimeException internalException(CoreException t)
protected boolean isExcludedFromProject(IPath childPath)
throws JavaModelException
JavaModelExceptionprotected Compiler newCompiler()
protected CompilationParticipantResult[] notifyParticipants(SourceFile[] unitsAboutToCompile)
protected abstract void processAnnotationResults(CompilationParticipantResult[] results)
protected void processAnnotations(CompilationParticipantResult[] results)
protected void recordParticipantResult(CompilationParticipantResult result)
protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws CoreException
IMarker#SOURCE_ID attribute is positioned to JavaBuilder.SOURCE_ID if
the problem was generated by JDT; else the IMarker#SOURCE_ID attribute is
carried from the problem to the marker in extra attributes, if present.CoreExceptionprotected void storeTasksFor(SourceFile sourceFile, CategorizedProblem[] tasks) throws CoreException
CoreExceptionprotected void updateProblemsFor(SourceFile sourceFile, CompilationResult result) throws CoreException
CoreExceptionprotected void updateTasksFor(SourceFile sourceFile, CompilationResult result) throws CoreException
CoreExceptionprotected char[] writeClassFile(ClassFile classFile, SourceFile compilationUnit, boolean isTopLevelType) throws CoreException
CoreExceptionprotected void writeClassFileContents(ClassFile classFile, IFile file, java.lang.String qualifiedFileName, boolean isTopLevelType, SourceFile compilationUnit) throws CoreException
CoreException