Class CompilationParticipantResult

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

public class CompilationParticipantResult extends BuildContext
  • Field Details

    • sourceFile

      protected SourceFile sourceFile
    • hasAnnotations

      protected boolean hasAnnotations
    • addedFiles

      protected org.eclipse.core.resources.IFile[] addedFiles
    • deletedFiles

      protected org.eclipse.core.resources.IFile[] deletedFiles
    • problems

      protected CategorizedProblem[] problems
    • dependencies

      protected String[] dependencies
  • Constructor Details

    • CompilationParticipantResult

      protected CompilationParticipantResult(SourceFile sourceFile, boolean isTestCode)
  • Method Details

    • 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 org.eclipse.core.resources.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(org.eclipse.core.resources.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(org.eclipse.core.resources.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(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 String toString()
      Overrides:
      toString in class Object
    • isTestCode

      public boolean isTestCode()
      Overrides:
      isTestCode in class BuildContext