Skip to content

Check: Strategy Pattern

Madeline Kahn edited this page Mar 11, 2024 · 2 revisions
  • Name: "strategyPattern"
  • Default: Disabled

Description

For a set of classes, the Check iterates through each class to check if the class is abstract. If so, we iterate through each field in the abstract class and check if any of the types is an interface. If it contains an interface, we check if the abstract class and interface contain at least one subclass each (similar to Unused Abstractions). If at least one for each is found, a message is returned saying that the pattern was found. If not, a message is returned saying that the pattern was not found.