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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanTaking into account the configuration, understand if this codemod is currently allowed.static CodemodRegulatorof(DefaultRuleSetting defaultCodemodSetting, List<String> codemodExceptions)
-
Method Details
-
isAllowed
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
-
of
static CodemodRegulator of(DefaultRuleSetting defaultCodemodSetting, List<String> codemodExceptions)
-