Class PatternDetector
java.lang.Object
com.redhat.parodos.patterndetection.PatternDetector
Main entry point to the library
- Author:
- Luke Shannon (Github: lshannon)
-
Method Summary
Modifier and TypeMethodDescriptionstatic DetectionResultsdetect(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
-
Method Details
-
detect
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)
-