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 Details

    • supports

      boolean supports(Path path)
      The Predicate that 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 Optional representing the file "before and after" the codemod
      Throws:
      IOException - if there is an error reading or writing the file