public enum ArgumentPropagationMutator extends Enum<ArgumentPropagationMutator> implements MethodMutatorFactory
public int originalMethod() { int someInt = 3; return someOtherMethod(someInt); } private int someOtherMethod(int parameter) { return parameter + 1; }is mutated to
public int mutatedMethod() { int someInt = 3; return someInt; }
Enum Constant and Description |
---|
ARGUMENT_PROPAGATION_MUTATOR |
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 . |
static ArgumentPropagationMutator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentPropagationMutator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArgumentPropagationMutator ARGUMENT_PROPAGATION_MUTATOR
public static ArgumentPropagationMutator[] values()
for (ArgumentPropagationMutator c : ArgumentPropagationMutator.values()) System.out.println(c);
public static ArgumentPropagationMutator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.objectweb.asm.MethodVisitor create(MutationContext context, MethodInfo methodInfo, org.objectweb.asm.MethodVisitor methodVisitor)
create
in interface MethodMutatorFactory
public String getGloballyUniqueId()
getGloballyUniqueId
in interface MethodMutatorFactory
public String getName()
MethodMutatorFactory
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
.getName
in interface MethodMutatorFactory
Copyright © 2021 org.pitest. All rights reserved.