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

io.codemodder.remediation.Remediator Maven / Gradle / Ivy

There is a newer version: 0.98.6
Show newest version
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