Class EnumFilter
- java.lang.Object
-
- org.pitest.mutationtest.build.intercept.javafeatures.EnumFilter
-
- All Implemented Interfaces:
MutationInterceptor
public class EnumFilter extends Object implements MutationInterceptor
Filters out mutations in Enum constructors, these are called only once per instance so are effectively static initializers. This overlaps with the StaticInitializerInterceptor, and could probably be removed. Left in place for now as it is computationally less expensive. Also filters mutants is the compiler generated valueOf and values methods.
-
-
Constructor Summary
Constructors Constructor Description EnumFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbegin(ClassTree clazz)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
-
end
public void end()
- Specified by:
endin interfaceMutationInterceptor
-
-