Class CompilationParticipantResult
java.lang.Object
org.aspectj.org.eclipse.jdt.core.compiler.BuildContext
org.aspectj.org.eclipse.jdt.internal.core.builder.CompilationParticipantResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.core.resources.IFile[]protected AnnotationBinding[]protected org.eclipse.core.resources.IFile[]protected String[]protected CategorizedProblem[]protected SourceFile -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompilationParticipantResult(SourceFile sourceFile, boolean isTestCode) -
Method Summary
Modifier and TypeMethodDescriptionchar[]Returns the contents of the compilation unit.org.eclipse.core.resources.IFilegetFile()Returns theIFilerepresenting the compilation unit.booleanReturns whether the compilation unit contained any annotations when it was compiled.booleanhasAnnotations(String fqn) Returns whether the compilation unit contained any annotations with a given type when it was compiled.booleanvoidrecordAddedGeneratedFiles(org.eclipse.core.resources.IFile[] addedGeneratedFiles) Record the added/changed generated files that need to be compiled.voidrecordDeletedGeneratedFiles(org.eclipse.core.resources.IFile[] deletedGeneratedFiles) Record the generated files that need to be deleted.voidrecordDependencies(String[] typeNameDependencies) Record the fully-qualified type names of any new dependencies, each name is of the form "p1.p2.A.B".voidrecordNewProblems(CategorizedProblem[] newProblems) Record new problems to report against this compilationUnit.toString()
-
Field Details
-
sourceFile
-
annotations
-
addedFiles
protected org.eclipse.core.resources.IFile[] addedFiles -
deletedFiles
protected org.eclipse.core.resources.IFile[] deletedFiles -
problems
-
dependencies
-
-
Constructor Details
-
CompilationParticipantResult
-
-
Method Details
-
getContents
public char[] getContents()Returns the contents of the compilation unit.- Overrides:
getContentsin classBuildContext- Returns:
- the contents of the compilation unit
-
getFile
public org.eclipse.core.resources.IFile getFile()Returns theIFilerepresenting the compilation unit.- Overrides:
getFilein classBuildContext- Returns:
- the
IFilerepresenting the compilation unit
-
hasAnnotations
public boolean hasAnnotations()Returns whether the compilation unit contained any annotations when it was compiled. NOTE: This is only valid duringCompilationParticipant.processAnnotations(BuildContext[]).- Overrides:
hasAnnotationsin classBuildContext- Returns:
- whether the compilation unit contained any annotations when it was compiled
-
hasAnnotations
Description copied from class:BuildContextReturns whether the compilation unit contained any annotations with a given type when it was compiled. NOTE: This is only valid duringCompilationParticipant.processAnnotations(BuildContext[]).- Overrides:
hasAnnotationsin classBuildContext- Parameters:
fqn- the fully qualified name of the annotation to check for presence- Returns:
- whether the compilation unit contained any annotations of the given type 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:
recordAddedGeneratedFilesin classBuildContext- 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:
recordDeletedGeneratedFilesin classBuildContext- Parameters:
deletedGeneratedFiles- the files that need to be deleted
-
recordDependencies
Record the fully-qualified type names of any new dependencies, each name is of the form "p1.p2.A.B".- Overrides:
recordDependenciesin classBuildContext- Parameters:
typeNameDependencies- the fully-qualified type names of new dependencies
-
recordNewProblems
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:
recordNewProblemsin classBuildContext- Parameters:
newProblems- the problems to report
-
toString
-
isTestCode
public boolean isTestCode()- Overrides:
isTestCodein classBuildContext
-