Klasse BuildContext
java.lang.Object
org.aspectj.org.eclipse.jdt.core.compiler.BuildContext
- Bekannte direkte Unterklassen:
CompilationParticipantResult
The context of a build event that is notified to interested compilation
participants when
a build is starting
,
to annotations processors when a source file has annotations
,
or to post processors when a class has finished compiling
.- Seit:
- 3.2
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungchar[]
Returns the contents of the compilation unit.org.eclipse.core.resources.IFile
getFile()
Returns theIFile
representing the compilation unit.boolean
Returns whether the compilation unit contained any annotations when it was compiled.boolean
void
recordAddedGeneratedFiles
(org.eclipse.core.resources.IFile[] addedGeneratedFiles) Record the added/changed generated files that need to be compiled.void
recordDeletedGeneratedFiles
(org.eclipse.core.resources.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.
-
Konstruktordetails
-
BuildContext
public BuildContext()
-
-
Methodendetails
-
getContents
public char[] getContents()Returns the contents of the compilation unit.- Gibt zurück:
- the contents of the compilation unit
-
getFile
public org.eclipse.core.resources.IFile getFile()Returns theIFile
representing the compilation unit.- Gibt zurück:
- 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 duringCompilationParticipant.processAnnotations(BuildContext[])
.- Gibt zurück:
- 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.- Parameter:
addedGeneratedFiles
- the added/changed files
-
recordDeletedGeneratedFiles
public void recordDeletedGeneratedFiles(org.eclipse.core.resources.IFile[] deletedGeneratedFiles) Record the generated files that need to be deleted.- Parameter:
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".- Parameter:
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).- Parameter:
newProblems
- the problems to report
-
isTestCode
public boolean isTestCode()- Seit:
- 3.14
-