-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from cflint/pluginnotify
Pluginnotify
- Loading branch information
Showing
3 changed files
with
149 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/com/cflint/plugins/CFLintStructureListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.cflint.plugins; | ||
|
||
/** | ||
* This interface supports plugins recieving structure notifications (file start/end, component start/end, function start/end) | ||
* | ||
* Normally it is used for initialization or summarization types of behaviours | ||
* @author eberlyrh | ||
* | ||
*/ | ||
public interface CFLintStructureListener { | ||
|
||
/** | ||
* Called when processing of a new file has started | ||
* @param context | ||
*/ | ||
public void startFile(String fileName); | ||
/** | ||
* Called when processing of current file has ended | ||
* @param context | ||
*/ | ||
public void endFile(String fileName); | ||
|
||
/** | ||
* Called when processing a new component has started | ||
* @param context | ||
*/ | ||
public void startComponent(Context context); | ||
/** | ||
* Called when processing of current component has ended | ||
* @param context | ||
*/ | ||
public void endComponent(Context context); | ||
|
||
/** | ||
* Called when processing of a new function has started | ||
* @param context | ||
*/ | ||
public void startFunction(Context context); | ||
/** | ||
* Called when processing of current function has ended | ||
* @param context | ||
*/ | ||
public void endFunction(Context context); | ||
|
||
} |