org.aspectj.org.eclipse.jdt.internal.core.builder
Class CompilationParticipantResult

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.core.compiler.BuildContext
      extended by org.aspectj.org.eclipse.jdt.internal.core.builder.CompilationParticipantResult

public class CompilationParticipantResult
extends BuildContext


Field Summary
protected  IFile[] addedFiles
           
protected  IFile[] deletedFiles
           
protected  java.lang.String[] dependencies
           
protected  boolean hasAnnotations
           
protected  CategorizedProblem[] problems
           
protected  SourceFile sourceFile
           
 
Constructor Summary
protected CompilationParticipantResult(SourceFile sourceFile)
           
 
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(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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceFile

protected SourceFile sourceFile

hasAnnotations

protected boolean hasAnnotations

addedFiles

protected IFile[] addedFiles

deletedFiles

protected IFile[] deletedFiles

problems

protected CategorizedProblem[] problems

dependencies

protected java.lang.String[] dependencies
Constructor Detail

CompilationParticipantResult

protected CompilationParticipantResult(SourceFile sourceFile)
Method Detail

getContents

public char[] getContents()
Returns the contents of the compilation unit.

Overrides:
getContents in class BuildContext
Returns:
the contents of the compilation unit

getFile

public IFile getFile()
Returns the IFile representing the compilation unit.

Overrides:
getFile in class BuildContext
Returns:
the IFile representing the compilation unit

hasAnnotations

public boolean hasAnnotations()
Returns whether the compilation unit contained any annotations when it was compiled. NOTE: This is only valid during CompilationParticipant.processAnnotations(BuildContext[]).

Overrides:
hasAnnotations in class BuildContext
Returns:
whether the compilation unit contained any annotations when it was compiled

recordAddedGeneratedFiles

public void recordAddedGeneratedFiles(IFile[] addedGeneratedFiles)
Record the added/changed generated files that need to be compiled.

Overrides:
recordAddedGeneratedFiles in class BuildContext
Parameters:
addedGeneratedFiles - the added/changed files

recordDeletedGeneratedFiles

public void recordDeletedGeneratedFiles(IFile[] deletedGeneratedFiles)
Record the generated files that need to be deleted.

Overrides:
recordDeletedGeneratedFiles in class BuildContext
Parameters:
deletedGeneratedFiles - the files that need to be deleted

recordDependencies

public 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".

Overrides:
recordDependencies in class BuildContext
Parameters:
typeNameDependencies - the fully-qualified type names of new dependencies

recordNewProblems

public void recordNewProblems(CategorizedProblem[] newProblems)
Record new problems to report against this compilationUnit. Markers are persisted for these problems only for the declared managed marker type (see the 'compilationParticipant' extension point).

Overrides:
recordNewProblems in class BuildContext
Parameters:
newProblems - the problems to report

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object