public class ReplaceComparisonOperator extends Object implements MutationOperator
ReplaceComparisonOperator class.
| Constructor and Description |
|---|
ReplaceComparisonOperator() |
| 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
|
org.objectweb.asm.tree.InsnList |
getInfectionDistance(int opcodeOrig,
int opcodeNew)
getInfectionDistance
|
static double |
getInfectionDistance(int intVal,
int opcodeOrig,
int opcodeNew)
getInfectionDistance
|
static double |
getInfectionDistance(int left,
int right,
int opcodeOrig,
int opcodeNew)
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(int opcodeOrig,
int opcodeNew)
getInfectionDistance
opcodeOrig - a int.opcodeNew - a int.InsnList object.public static double getInfectionDistance(int left,
int right,
int opcodeOrig,
int opcodeNew)
getInfectionDistance
left - a int.right - a int.opcodeOrig - a int.opcodeNew - a int.public static double getInfectionDistance(int intVal,
int opcodeOrig,
int opcodeNew)
getInfectionDistance
intVal - a int.opcodeOrig - a int.opcodeNew - a int.public boolean isApplicable(BytecodeInstruction instruction)
isApplicable in interface MutationOperatorinstruction - a BytecodeInstruction object.Copyright © 2010–2017 EvoSuite. All rights reserved.