Package io.codemodder
Interface CodemodRunner
- All Known Implementing Classes:
JavaParserCodemodRunner
public interface CodemodRunner
Type responsible for running a codemod on a single file, performing the analysis and file
changes.
-
Method Summary
Modifier and TypeMethodDescriptionrun(CodemodInvocationContext context) Run the codemod on a single file.booleanThePredicatethat determines if this runner supports the given file.
-
Method Details
-
supports
ThePredicatethat determines if this runner supports the given file. -
run
Run the codemod on a single file.- Parameters:
context- the context for the codemod invocation- Returns:
- an
Optionalrepresenting the file "before and after" the codemod - Throws:
IOException- if there is an error reading or writing the file
-