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

org.pitest.mutationtest.build.MutationInterceptor Maven / Gradle / Ivy

There is a newer version: 1.17.1
Show newest version
package org.pitest.mutationtest.build;

import java.util.Collection;

import org.pitest.bytecode.analysis.ClassTree;
import org.pitest.classpath.CodeSource;
import org.pitest.mutationtest.engine.Mutater;
import org.pitest.mutationtest.engine.MutationDetails;

public interface MutationInterceptor {

  InterceptorType type();

  /**
   * Called once per instance prior to intercepting
   * @param code Current code source
   */
  default void initialise(CodeSource code) {
    // noop
  }

  void begin(ClassTree clazz);

  Collection intercept(Collection mutations, Mutater m);

  void end();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy