Package io.codemodder

Interface CodemodRegulator

All Known Implementing Classes:
CodemodRegulator.DefaultCodemodRegulator

public interface CodemodRegulator
A type that is relied on to inform our in-flight analysis on whether codemods are allowed.
  • Method Details

    • isAllowed

      boolean isAllowed(String codemodId)
      Taking into account the configuration, understand if this codemod is currently allowed.
      Parameters:
      codemodId - the string id of the codemod
      Returns:
      true, if the codemod is allowed -- false otherwise
    • desiredCodemodIdOrder

      Optional<List<String>> desiredCodemodIdOrder()
    • of

      static CodemodRegulator of(DefaultRuleSetting defaultCodemodSetting, List<String> codemodExceptions)