Package cdc.issues.rules
Interface IssuesDetector<T>
-
- Type Parameters:
T- The data type onto which issue can be detected.
- All Known Implementing Classes:
AbstractIssueDetector
public interface IssuesDetector<T>Interface implemented by classes that can detect issues.- Author:
- Damien Carbonne
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIssuesDetector.AbstractDescriptor<T>static interfaceIssuesDetector.Descriptor<T>Interface implemented by classes that can describe and create an IssuesDetector.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidanalyze(T data, Location location, IssuesHandler<Issue> issuesHandler)Analyzes one data.voidanalyze(T data, List<Location> locations, IssuesHandler<Issue> issuesHandler)Analyzes one data.default Class<T>getDataClass()IssuesDetector.Descriptor<T>getDescriptor()Set<ConfiguredRule>getEnabledConfiguredRules()Set<Rule>getEnabledRules()StringgetProject()StringgetSnapshot()static StringtoString(IssuesDetector<?> detector)
-
-
-
Method Detail
-
getDescriptor
IssuesDetector.Descriptor<T> getDescriptor()
- Returns:
- The descriptor that was used to create this IssuesDetector.
-
getProject
String getProject()
- Returns:
- The project name of analyzed data.
-
getSnapshot
String getSnapshot()
- Returns:
- The snapshot name for which analysis is done.
-
getEnabledConfiguredRules
Set<ConfiguredRule> getEnabledConfiguredRules()
- Returns:
- The set of enabled ConfiguredRules.
-
analyze
void analyze(T data, List<Location> locations, IssuesHandler<Issue> issuesHandler)
Analyzes one data.- Parameters:
data- The data to analyze.locations- The data locations. Must NOT be empty.issuesHandler- The issues handler that must be used to store issues.
-
analyze
default void analyze(T data, Location location, IssuesHandler<Issue> issuesHandler)
Analyzes one data.- Parameters:
data- The data to analyze.location- The data location.issuesHandler- The issues handler that must be used to store issues.
-
toString
static String toString(IssuesDetector<?> detector)
-
-