public class BytecodeInstructionPool extends Object
BytecodeInstructionPool class.
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
clear
|
void |
clear(String className)
clear
|
void |
clear(String className,
String methodName)
clear
|
static void |
clearAll() |
static void |
clearAll(String className) |
static void |
clearAll(String className,
String methodName) |
BytecodeInstruction |
createFakeInstruction(String className,
String methodName)
createFakeInstruction
|
boolean |
forgetInstruction(BytecodeInstruction ins)
forgetInstruction
|
List<BytecodeInstruction> |
getAllInstructions() |
BytecodeInstruction |
getFirstInstructionAtLineNumber(String className,
String methodName,
int lineNumber) |
int |
getFirstLineNumberOfMethod(String className,
String methodName) |
static BytecodeInstructionPool |
getInstance(ClassLoader classLoader) |
BytecodeInstruction |
getInstruction(String className,
String methodName,
org.objectweb.asm.tree.AbstractInsnNode node)
getInstruction
|
BytecodeInstruction |
getInstruction(String className,
String methodName,
int instructionId)
getInstruction
|
BytecodeInstruction |
getInstruction(String className,
String methodName,
int instructionId,
org.objectweb.asm.tree.AbstractInsnNode asmNode)
getInstruction
|
List<BytecodeInstruction> |
getInstructionsIn(String className) |
List<BytecodeInstruction> |
getInstructionsIn(String className,
String methodName)
getInstructionsIn
|
boolean |
hasMethod(String className,
String methodName) |
Set<String> |
knownClasses()
knownClasses
|
Set<String> |
knownMethods(String className)
knownMethods
|
void |
logInstructionsIn(String className,
String methodName)
logInstructionsIn
|
void |
registerInstruction(BytecodeInstruction instruction)
registerInstruction
|
List<BytecodeInstruction> |
registerMethodNode(org.objectweb.asm.tree.MethodNode node,
String className,
String methodName)
Called by each CFGGenerator for it's corresponding method.
|
public static BytecodeInstructionPool getInstance(ClassLoader classLoader)
public List<BytecodeInstruction> registerMethodNode(org.objectweb.asm.tree.MethodNode node, String className, String methodName)
public void registerInstruction(BytecodeInstruction instruction)
registerInstruction
instruction - a BytecodeInstruction object.public BytecodeInstruction getInstruction(String className, String methodName, int instructionId, org.objectweb.asm.tree.AbstractInsnNode asmNode)
getInstruction
className - a String object.methodName - a String object.instructionId - a int.asmNode - a AbstractInsnNode object.BytecodeInstruction object.public BytecodeInstruction getInstruction(String className, String methodName, int instructionId)
getInstruction
className - a String object.methodName - a String object.instructionId - a int.BytecodeInstruction object.public BytecodeInstruction getInstruction(String className, String methodName, org.objectweb.asm.tree.AbstractInsnNode node)
getInstruction
className - a String object.methodName - a String object.node - a AbstractInsnNode object.BytecodeInstruction object.public List<BytecodeInstruction> getInstructionsIn(String className, String methodName)
getInstructionsIn
public List<BytecodeInstruction> getInstructionsIn(String className)
public List<BytecodeInstruction> getAllInstructions()
public void logInstructionsIn(String className, String methodName)
logInstructionsIn
public BytecodeInstruction createFakeInstruction(String className, String methodName)
createFakeInstruction
className - a String object.methodName - a String object.BytecodeInstruction object.public void clear()
clear
public static void clearAll()
public static void clearAll(String className)
public boolean forgetInstruction(BytecodeInstruction ins)
forgetInstruction
ins - a BytecodeInstruction object.public int getFirstLineNumberOfMethod(String className, String methodName)
public BytecodeInstruction getFirstInstructionAtLineNumber(String className, String methodName, int lineNumber)
Copyright © 2010–2017 EvoSuite. All rights reserved.