Skip to content

Commit

Permalink
Add OnAnalysisExitAccess handler useful for code that needs to run af…
Browse files Browse the repository at this point in the history
…ter the analysis, even if an error has occured, e.g., like reporting code.
  • Loading branch information
cstancu committed Nov 13, 2017
1 parent 9f7f707 commit f943427
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ interface AfterAnalysisAccess extends FeatureAccess {

}

/**
* Access methods available for {@link Feature#onAnalysisExit()}.
*/
@Platforms(Platform.HOSTED_ONLY.class)
interface OnAnalysisExitAccess extends FeatureAccess {

}

/**
* Access methods available for {@link Feature#beforeCompilation} and
* {@link Feature#afterCompilation}.
Expand Down Expand Up @@ -301,6 +309,15 @@ default void duringAnalysis(DuringAnalysisAccess access) {
default void afterAnalysis(AfterAnalysisAccess access) {
}

/**
* Handler for code that needs to run after the analysis, even if an error has occured, e.g.,
* like reporting code.
*
* @param access The supported operations that the feature can perform at this time
*/
default void onAnalysisExit(OnAnalysisExitAccess access) {
}

/**
* Handler for initializations before compilation.
*
Expand Down

0 comments on commit f943427

Please sign in to comment.