-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d812a52
commit b2ef7e5
Showing
3 changed files
with
208 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); | ||
|
||
} |