java.lang.Object
org.eclipse.jdt.internal.core.builder.AbstractImageBuilder
- All Implemented Interfaces:
- org.eclipse.jdt.internal.compiler.ICompilerRequestor
- Direct Known Subclasses:
- BatchImageBuilder, IncrementalImageBuilder
- public abstract class AbstractImageBuilder
- extends java.lang.Object
- implements org.eclipse.jdt.internal.compiler.ICompilerRequestor
The abstract superclass of Java builders.
Provides the building and compilation mechanism
in common with the batch and incremental builders.
|
Method Summary |
void |
acceptResult(org.eclipse.jdt.internal.compiler.CompilationResult result)
Accept a compilation result. |
protected void |
cleanUp()
|
protected void |
compile(SourceFile[] units)
|
(package private) void |
compile(SourceFile[] units,
SourceFile[] additionalUnits)
|
protected org.eclipse.core.resources.IContainer |
createFolder(org.eclipse.core.runtime.IPath packagePath,
org.eclipse.core.resources.IContainer outputFolder)
|
protected void |
createProblemFor(org.eclipse.core.resources.IResource resource,
java.lang.String message,
java.lang.String problemSeverity)
|
protected void |
finishedWith(java.lang.String sourceLocator,
org.eclipse.jdt.internal.compiler.CompilationResult result,
char[] mainTypeName,
java.util.ArrayList definedTypeNames,
java.util.ArrayList duplicateTypeNames)
|
protected java.lang.RuntimeException |
internalException(org.eclipse.core.runtime.CoreException t)
|
protected boolean |
isExcludedFromProject(org.eclipse.core.runtime.IPath childPath)
|
protected org.eclipse.jdt.internal.compiler.Compiler |
newCompiler()
|
protected void |
storeProblemsFor(SourceFile sourceFile,
org.eclipse.jdt.core.compiler.IProblem[] problems)
Creates a marker from each problem and adds it to the resource. |
protected void |
storeTasksFor(SourceFile sourceFile,
org.eclipse.jdt.core.compiler.IProblem[] tasks)
|
protected void |
updateProblemsFor(SourceFile sourceFile,
org.eclipse.jdt.internal.compiler.CompilationResult result)
|
protected void |
updateTasksFor(SourceFile sourceFile,
org.eclipse.jdt.internal.compiler.CompilationResult result)
|
protected char[] |
writeClassFile(org.eclipse.jdt.internal.compiler.ClassFile classFile,
SourceFile compilationUnit,
boolean isSecondaryType)
|
protected void |
writeClassFileBytes(byte[] bytes,
org.eclipse.core.resources.IFile file,
java.lang.String qualifiedFileName,
boolean isSecondaryType,
boolean updateClassFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
javaBuilder
protected JavaBuilder javaBuilder
newState
protected State newState
nameEnvironment
protected NameEnvironment nameEnvironment
sourceLocations
protected ClasspathMultiDirectory[] sourceLocations
notifier
protected BuildNotifier notifier
compiler
protected org.eclipse.jdt.internal.compiler.Compiler compiler
workQueue
protected WorkQueue workQueue
problemSourceFiles
protected java.util.ArrayList problemSourceFiles
compiledAllAtOnce
protected boolean compiledAllAtOnce
inCompiler
private boolean inCompiler
MAX_AT_ONCE
public static int MAX_AT_ONCE
AbstractImageBuilder
protected AbstractImageBuilder(JavaBuilder javaBuilder)
acceptResult
public void acceptResult(org.eclipse.jdt.internal.compiler.CompilationResult result)
- Description copied from interface:
org.eclipse.jdt.internal.compiler.ICompilerRequestor
- Accept a compilation result.
- Specified by:
acceptResult in interface org.eclipse.jdt.internal.compiler.ICompilerRequestor
cleanUp
protected void cleanUp()
compile
protected void compile(SourceFile[] units)
compile
void compile(SourceFile[] units,
SourceFile[] additionalUnits)
createProblemFor
protected void createProblemFor(org.eclipse.core.resources.IResource resource,
java.lang.String message,
java.lang.String problemSeverity)
finishedWith
protected void finishedWith(java.lang.String sourceLocator,
org.eclipse.jdt.internal.compiler.CompilationResult result,
char[] mainTypeName,
java.util.ArrayList definedTypeNames,
java.util.ArrayList duplicateTypeNames)
createFolder
protected org.eclipse.core.resources.IContainer createFolder(org.eclipse.core.runtime.IPath packagePath,
org.eclipse.core.resources.IContainer outputFolder)
throws org.eclipse.core.runtime.CoreException
internalException
protected java.lang.RuntimeException internalException(org.eclipse.core.runtime.CoreException t)
newCompiler
protected org.eclipse.jdt.internal.compiler.Compiler newCompiler()
isExcludedFromProject
protected boolean isExcludedFromProject(org.eclipse.core.runtime.IPath childPath)
throws org.eclipse.jdt.core.JavaModelException
storeProblemsFor
protected void storeProblemsFor(SourceFile sourceFile,
org.eclipse.jdt.core.compiler.IProblem[] problems)
throws org.eclipse.core.runtime.CoreException
- 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
storeTasksFor
protected void storeTasksFor(SourceFile sourceFile,
org.eclipse.jdt.core.compiler.IProblem[] tasks)
throws org.eclipse.core.runtime.CoreException
updateProblemsFor
protected void updateProblemsFor(SourceFile sourceFile,
org.eclipse.jdt.internal.compiler.CompilationResult result)
throws org.eclipse.core.runtime.CoreException
updateTasksFor
protected void updateTasksFor(SourceFile sourceFile,
org.eclipse.jdt.internal.compiler.CompilationResult result)
throws org.eclipse.core.runtime.CoreException
writeClassFile
protected char[] writeClassFile(org.eclipse.jdt.internal.compiler.ClassFile classFile,
SourceFile compilationUnit,
boolean isSecondaryType)
throws org.eclipse.core.runtime.CoreException
writeClassFileBytes
protected void writeClassFileBytes(byte[] bytes,
org.eclipse.core.resources.IFile file,
java.lang.String qualifiedFileName,
boolean isSecondaryType,
boolean updateClassFile)
throws org.eclipse.core.runtime.CoreException