Class PatternDetector

java.lang.Object
com.redhat.parodos.patterndetection.PatternDetector

public class PatternDetector extends Object
Main entry point to the library
Author:
Luke Shannon (Github: lshannon)
  • Method Details

    • detect

      public static DetectionResults detect(WorkContext context, Pattern[] desiredPatterns)
      Takes a @see WorkContext and a List of @Pattern reference, performs a Scan on code/configuration to determine if the @see Clue references are present to detect one of the desired @Pattern
      Parameters:
      context - contains inputs for the scan, and is passed around components of the scan to capture all outputs generated during the scan
      Returns:
      DetectionResults contains the detected @see Clue(s) and detected @see Pattern(s)