Interface IssuesDetector.Descriptor<T>

  • Type Parameters:
    T - The data type onto which issue can be detected.
    All Known Implementing Classes:
    IssuesDetector.AbstractDescriptor
    Enclosing interface:
    IssuesDetector<T>

    public static interface IssuesDetector.Descriptor<T>
    Interface implemented by classes that can describe and create an IssuesDetector.
    Author:
    Damien Carbonne
    • Method Detail

      • getDataClass

        Class<T> getDataClass()
        Returns:
        The class of data that can be analyzed.
      • getRules

        Set<Rule> getRules()
        Returns:
        The set of all supported Rules.
      • create

        IssuesDetector<T> create​(String project,
                                 String snapshot,
                                 Set<Rule> rules)
        Creates and configures an IssuesDetector to analyze some rules.
        Parameters:
        project - The project for which detection is run.
        snapshot - The snapshot for which detection is run.
        rules - The rules for which analysis must be performed.
        It must be a subset of supported rules.
        Returns:
        A newly created IssuesDetector, configured with params and rules.