Package analyzer
Interface OutputCollector
public interface OutputCollector
This interface is used to collect analyzer output in the form of comments, tags and an optional summary.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(Comment comment) Add a new comment to the analysis.void
Add a new tag to the analysis.Retrieve a copy of the comments added to this analysis.The summary is a short description of the complete analysis result.getTags()
Retrieve a copy of the tags added to this analysis.void
setSummary
(String summary) Set the summary of the analysis.
-
Method Details
-
getSummary
String getSummary()The summary is a short description of the complete analysis result. It isnull
by default.- Returns:
- The summary if set,
null
otherwise.
-
setSummary
Set the summary of the analysis. If the summary was set previously, setting it again will overwrite it. The summary can be cleared by setting it tonull
.- Parameters:
summary
- The summary to set.
-
getComments
Retrieve a copy of the comments added to this analysis. The resulting list is guaranteed to contain no duplicates.- Returns:
- List of comments.
-
getTags
Retrieve a copy of the tags added to this analysis. The resulting list is guaranteed to contain no duplicates.- Returns:
- List of tags.
-
addComment
Add a new comment to the analysis. This does nothing if a comment with the same values was added previously.- Parameters:
comment
- The comment to add.
-
addTag
Add a new tag to the analysis. This does nothing if the same tag was added previously.- Parameters:
tag
- The tag to add.
-