All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.CodeTFProvider Maven / Gradle / Ivy

package io.codemodder;

import io.codemodder.codetf.CodeTFChange;
import io.codemodder.codetf.CodeTFResult;
import java.nio.file.Path;

/** A type that plugins can implement to enrich or modify CodeTF results. */
public interface CodeTFProvider {

  /**
   * Called when a result is created. This allows plugins to modify or replace with a new result.
   */
  default CodeTFResult onResultCreated(CodeTFResult result) {
    return result;
  }

  /**
   * Called when a change is created. This allows plugins to modify or replace with a new change.
   */
  default CodeTFChange onChangeCreated(Path path, String codemod, CodeTFChange change) {
    return change;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy