public class CompilationParticipantResult extends BuildContext
| Modifier and Type | Field and Description |
|---|---|
protected IFile[] |
addedFiles |
protected IFile[] |
deletedFiles |
protected java.lang.String[] |
dependencies |
protected boolean |
hasAnnotations |
protected CategorizedProblem[] |
problems |
protected SourceFile |
sourceFile |
| Modifier | Constructor and Description |
|---|---|
protected |
CompilationParticipantResult(SourceFile sourceFile) |
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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.
|
java.lang.String |
toString() |
protected SourceFile sourceFile
protected boolean hasAnnotations
protected IFile[] addedFiles
protected IFile[] deletedFiles
protected CategorizedProblem[] problems
protected java.lang.String[] dependencies
protected CompilationParticipantResult(SourceFile sourceFile)
public char[] getContents()
getContents in class BuildContextpublic IFile getFile()
IFile representing the compilation unit.getFile in class BuildContextIFile representing the compilation unitpublic boolean hasAnnotations()
CompilationParticipant.processAnnotations(BuildContext[]).hasAnnotations in class BuildContextpublic void recordAddedGeneratedFiles(IFile[] addedGeneratedFiles)
recordAddedGeneratedFiles in class BuildContextaddedGeneratedFiles - the added/changed filespublic void recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles)
recordDeletedGeneratedFiles in class BuildContextdeletedGeneratedFiles - the files that need to be deletedpublic void recordDependencies(java.lang.String[] typeNameDependencies)
recordDependencies in class BuildContexttypeNameDependencies - the fully-qualified type names of new dependenciespublic void recordNewProblems(CategorizedProblem[] newProblems)
recordNewProblems in class BuildContextnewProblems - the problems to reportpublic java.lang.String toString()
toString in class java.lang.Object