public interface MethodMutatorFactory
MethodMutatorFactory
is a factory creating method mutating
method visitors. Those method visitors will serve two purposes: finding new
mutation points (locations in byte code where mutations can be applied) and
applying those mutations to the byte code.
A MethodMutatorFactory
will have a globally unique id and must
provide a human readable name via the getName()
method. This
name will be used in the reports created to document and describe the
mutation(s) applied.
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.MethodVisitor |
create(MutationContext context,
MethodInfo methodInfo,
org.objectweb.asm.MethodVisitor methodVisitor) |
String |
getGloballyUniqueId() |
String |
getName()
Returns a human readable
String representation of this
MethodMutatorFactory . |
org.objectweb.asm.MethodVisitor create(MutationContext context, MethodInfo methodInfo, org.objectweb.asm.MethodVisitor methodVisitor)
String getGloballyUniqueId()
String getName()
String
representation of this
MethodMutatorFactory
. The return value of this method will be
used in reports to document and describe the mutation(s) applied by the
MethodVisitor
created by this
MethodMutatorFactory
.Copyright © 2021 org.pitest. All rights reserved.