public class BooleanTestabilityTransformation extends Object
| Modifier and Type | Field and Description |
|---|---|
ClassLoader |
classLoader |
String |
className |
org.objectweb.asm.tree.analysis.Frame[] |
currentFrames |
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
BooleanTestabilityTransformation(org.objectweb.asm.tree.ClassNode cn,
ClassLoader classLoader)
Constructor for BooleanTestabilityTransformation.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getOriginalDesc(String className,
String methodName,
String desc)
getOriginalDesc
|
static String |
getOriginalNameDesc(String className,
String methodName,
String desc)
getOriginalNameDesc
|
static boolean |
hasTransformedParameters(String className,
String methodName,
String desc)
hasTransformedParameters
|
void |
insertGet(org.objectweb.asm.tree.AbstractInsnNode position,
org.objectweb.asm.tree.InsnList list)
Insert a call that takes a boolean from the stack, and returns the
appropriate distance
|
void |
insertGetBefore(org.objectweb.asm.tree.AbstractInsnNode position,
org.objectweb.asm.tree.InsnList list)
Insert a call that takes a boolean from the stack, and returns the
appropriate distance
|
void |
insertPush(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
Insert a call to the distance function for unary comparison
|
void |
insertPush2(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
Insert a call to the distance function for binary comparison
|
void |
insertPushEquals(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
Insert a call to the reference equality check helper function
|
void |
insertPushNull(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
Insert a call to the isNull helper function
|
boolean |
isBooleanAssignment(org.objectweb.asm.tree.AbstractInsnNode position,
org.objectweb.asm.tree.MethodNode mn)
This helper function determines whether the boolean on the stack at the
current position will be stored in a Boolean variable
|
boolean |
isBooleanOnStack(org.objectweb.asm.tree.MethodNode mn,
org.objectweb.asm.tree.AbstractInsnNode node,
int position) |
boolean |
isBooleanVariable(int var,
org.objectweb.asm.tree.MethodNode mn) |
static boolean |
isTransformedField(String className,
String fieldName,
String desc)
isTransformedField
|
org.objectweb.asm.tree.ClassNode |
transform()
Transform all methods and fields
|
String |
transformFieldDescriptor(String owner,
String name,
String desc)
Determine if the signature of the given field needs to be transformed,
and transform if necessary
|
String |
transformMethodDescriptor(String owner,
String name,
String desc)
Determine if the signature of the given method needs to be transformed,
and transform if necessary
|
public static final org.slf4j.Logger logger
public final String className
public org.objectweb.asm.tree.analysis.Frame[] currentFrames
public ClassLoader classLoader
public BooleanTestabilityTransformation(org.objectweb.asm.tree.ClassNode cn,
ClassLoader classLoader)
Constructor for BooleanTestabilityTransformation.
cn - a ClassNode object.public org.objectweb.asm.tree.ClassNode transform()
ClassNode object.public static String getOriginalNameDesc(String className, String methodName, String desc)
getOriginalNameDesc
public static String getOriginalDesc(String className, String methodName, String desc)
getOriginalDesc
public static boolean hasTransformedParameters(String className, String methodName, String desc)
hasTransformedParameters
public static boolean isTransformedField(String className, String fieldName, String desc)
isTransformedField
public void insertPushNull(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
opcode - position - list - public void insertPushEquals(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
opcode - position - list - public void insertPush(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
opcode - position - list - public void insertPush2(int opcode,
org.objectweb.asm.tree.JumpInsnNode position,
org.objectweb.asm.tree.InsnList list)
opcode - position - list - public void insertGet(org.objectweb.asm.tree.AbstractInsnNode position,
org.objectweb.asm.tree.InsnList list)
position - list - public void insertGetBefore(org.objectweb.asm.tree.AbstractInsnNode position,
org.objectweb.asm.tree.InsnList list)
position - list - public boolean isBooleanOnStack(org.objectweb.asm.tree.MethodNode mn,
org.objectweb.asm.tree.AbstractInsnNode node,
int position)
public boolean isBooleanVariable(int var,
org.objectweb.asm.tree.MethodNode mn)
public boolean isBooleanAssignment(org.objectweb.asm.tree.AbstractInsnNode position,
org.objectweb.asm.tree.MethodNode mn)
position - mn - public String transformMethodDescriptor(String owner, String name, String desc)
owner - name - desc - Copyright © 2010–2017 EvoSuite. All rights reserved.