public class DeleteField extends Object implements MutationOperator
DeleteField class.
| Constructor and Description |
|---|
DeleteField() |
| Modifier and Type | Method and Description |
|---|---|
List<Mutation> |
apply(org.objectweb.asm.tree.MethodNode mn,
String className,
String methodName,
BytecodeInstruction instruction,
org.objectweb.asm.tree.analysis.Frame frame)
Insert the mutation into the bytecode
|
static double |
getDistance(double val1,
double val2)
getDistance
|
static double |
getDistance(Object obj1,
Object obj2)
getDistance
|
org.objectweb.asm.tree.InsnList |
getInfectionDistance(org.objectweb.asm.tree.FieldInsnNode original,
org.objectweb.asm.tree.InsnList mutant)
getInfectionDistance
|
boolean |
isApplicable(BytecodeInstruction instruction)
Check if the mutation operator is applicable to the instruction
|
public static final String NAME
public List<Mutation> apply(org.objectweb.asm.tree.MethodNode mn, String className, String methodName, BytecodeInstruction instruction, org.objectweb.asm.tree.analysis.Frame frame)
apply in interface MutationOperatormn - a MethodNode object.className - a String object.methodName - a String object.instruction - a BytecodeInstruction object.frame - a Frame object.List object.public org.objectweb.asm.tree.InsnList getInfectionDistance(org.objectweb.asm.tree.FieldInsnNode original,
org.objectweb.asm.tree.InsnList mutant)
getInfectionDistance
original - a FieldInsnNode object.mutant - a InsnList object.InsnList object.public static double getDistance(double val1,
double val2)
getDistance
val1 - a double.val2 - a double.public boolean isApplicable(BytecodeInstruction instruction)
isApplicable in interface MutationOperatorinstruction - a BytecodeInstruction object.Copyright © 2010–2017 EvoSuite. All rights reserved.