io.codemodder.remediation.Remediator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codemodder-base Show documentation
Show all versions of codemodder-base Show documentation
Base framework for writing codemods in Java
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 {
/** Performs the work of performing all remediation, and returning reporting metadata. */
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> findingStartColumnExtractor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy