|
Eclipse JDT Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.core.builder.CompilationParticipantResult
org.eclipse.jdt.core.compiler.BuildContext
public class BuildContext
The context of a build event that is notified to interested compilation
participants when a build is starting,
or to annotations processors when a source file has annotations.
This class is not intended to be instanciated or subclassed by clients.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jdt.internal.core.builder.CompilationParticipantResult |
|---|
addedFiles, deletedFiles, dependencies, hasAnnotations, problems, sourceFile |
| Constructor Summary | |
|---|---|
BuildContext(org.eclipse.jdt.internal.core.builder.SourceFile sourceFile)
Creates a build context for the given source file. |
|
| Method Summary | |
|---|---|
char[] |
getContents()
Returns the contents of the compilation unit. |
IFile |
getFile()
Returns the IFile representing the compilation unit. |
boolean |
hasAnnotations()
Returns whether the compilation unit contained any annotations when it was compiled. |
void |
recordAddedGeneratedFiles(IFile[] addedGeneratedFiles)
Record the added/changed generated files that need to be compiled. |
void |
recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles)
Record the generated files that need to be deleted. |
void |
recordDependencies(String[] typeNameDependencies)
Record the fully-qualified type names of any new dependencies, each name is of the form "p1.p2.A.B". |
void |
recordNewProblems(CategorizedProblem[] newProblems)
Record new problems to report against this compilationUnit. |
| Methods inherited from class org.eclipse.jdt.internal.core.builder.CompilationParticipantResult |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BuildContext(org.eclipse.jdt.internal.core.builder.SourceFile sourceFile)
This constructor is not intended to be called by clients.
sourceFile - the source file being built| Method Detail |
|---|
public char[] getContents()
public IFile getFile()
IFile representing the compilation unit.
IFile representing the compilation unitpublic boolean hasAnnotations()
CompilationParticipant.processAnnotations(BuildContext[]).
public void recordAddedGeneratedFiles(IFile[] addedGeneratedFiles)
addedGeneratedFiles - the added/changed filespublic void recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles)
deletedGeneratedFiles - the files that need to be deletedpublic void recordDependencies(String[] typeNameDependencies)
typeNameDependencies - the fully-qualified type names of new dependenciespublic void recordNewProblems(CategorizedProblem[] newProblems)
newProblems - the problems to report
|
Eclipse JDT Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||