io.codemodder.remediation.Remediator Maven / Gradle / Ivy
package io.codemodder.remediation;
import com.github.javaparser.ast.CompilationUnit;
import io.codemodder.CodemodFileScanningResult;
import io.codemodder.codetf.DetectorRule;
import java.util.Collection;
import java.util.Optional;
import java.util.function.Function;
/**
* Remediates findings for a given path.
*
* @param
*/
public interface Remediator {
CodemodFileScanningResult remediateAll(
final CompilationUnit cu,
final String path,
final DetectorRule detectorRule,
final Collection findingsForPath,
final Function findingIdExtractor,
final Function findingStartLineExtractor,
final Function> findingEndLineExtractor,
final Function> findingColumnExtractor);
}