Package io.codemodder

Class CodemodRegulator.DefaultCodemodRegulator

java.lang.Object
io.codemodder.CodemodRegulator.DefaultCodemodRegulator
All Implemented Interfaces:
CodemodRegulator
Enclosing interface:
CodemodRegulator

public static class CodemodRegulator.DefaultCodemodRegulator extends Object implements CodemodRegulator
  • Method Details

    • isAllowed

      public boolean isAllowed(String codemodId)
      Description copied from interface: CodemodRegulator
      Taking into account the configuration, understand if this codemod is currently allowed.
      Specified by:
      isAllowed in interface CodemodRegulator
      Parameters:
      codemodId - the string id of the codemod
      Returns:
      true, if the codemod is allowed -- false otherwise