public class InlineConstantMutator extends Object implements MethodMutatorFactory
InlineConstantMutator
is a mutator that mutates integer
inline constants (including short, byte, long) by adding 1 and that mutates
float inline constants (including double) by replacing them with 1.Constructor and Description |
---|
InlineConstantMutator() |
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 . |
String |
toString() |
public 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.