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 IssueDetector.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidanalyze(T data, Location location, IssuesHandler<Issue> issuesHandler)Analyzes one data.default Class<T>getDataClass()IssuesDetector.Descriptor<T>getDescriptor()Set<Rule>getEnabledRules()ParamsgetParams()static StringtoString(IssuesDetector<?> detector)
-
-
-
Method Detail
-
getDescriptor
IssuesDetector.Descriptor<T> getDescriptor()
- Returns:
- The descriptor that was used to create this IssuesDetector.
-
getParams
Params getParams()
- Returns:
- The parameters used to configure this detector.
-
analyze
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)
-
-