Class RegionInterceptor
- java.lang.Object
-
- org.pitest.mutationtest.build.intercept.RegionInterceptor
-
- All Implemented Interfaces:
MutationInterceptor
- Direct Known Subclasses:
AssertFilter,EnumSwitchFilter,ImplicitNullCheckFilter,LombokNullFilter,MethodReferenceNullCheckFilter,MutatorSpecificInterceptor,StringSwitchFilter,TryWithResourcesFilter,UnmodifiableCollections
public abstract class RegionInterceptor extends Object implements MutationInterceptor
Base class to perform donkey work for interceptors that compute excluded regions per method
-
-
Constructor Summary
Constructors Constructor Description RegionInterceptor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbegin(ClassTree clazz)protected Predicate<MutationDetails>buildPredicate()protected abstract List<Region>computeRegions(MethodTree method)voidend()Collection<MutationDetails>intercept(Collection<MutationDetails> mutations, Mutater m)InterceptorTypetype()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pitest.mutationtest.build.MutationInterceptor
initialise
-
-
-
-
Method Detail
-
type
public InterceptorType type()
- Specified by:
typein interfaceMutationInterceptor
-
begin
public void begin(ClassTree clazz)
- Specified by:
beginin interfaceMutationInterceptor
-
intercept
public Collection<MutationDetails> intercept(Collection<MutationDetails> mutations, Mutater m)
- Specified by:
interceptin interfaceMutationInterceptor
-
buildPredicate
protected Predicate<MutationDetails> buildPredicate()
-
computeRegions
protected abstract List<Region> computeRegions(MethodTree method)
-
end
public void end()
- Specified by:
endin interfaceMutationInterceptor
-
-